我在AWS上安装了odoo11。我试图在“看板视图”中添加字段,但是在尝试定义看板视图时收到错误消息“ Uncaught TypeError:无法读取未定义的属性'tag'”。
那么如何解决这个问题?或正确的方法是什么?
这是下面的代码:
<record model="ir.ui.view" id="customer_analysis.kanb">
<field name="name">Servays.kanb</field>
<field name="model">customer_analysis.anaylsis</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<kanban>
<field name="customer"/>
<field name="represent"/>
<field name="phone"/>
<field name="location"/>
<field name="position"/>
<field name="package"/>
</kanban>
</field>
</record>
上面的代码试图显示一些细节时出现错误,并且当我评论上面的代码时出现“空看板”。
<record model="ir.actions.act_window" id="customer_analysis.action_window">
<field name="name">Servays</field>
<field name="res_model">customer_analysis.anaylsis</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form,pivot</field>
<field name="view_id" ref="customer_analysis.tree"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Create an Analysis, a step of a new opportunity.
</p>
</field>
</record>
答案 0 :(得分:0)
<record model="ir.ui.view" id="customer_analysis.kanb">
<field name="name">Servays.kanb</field>
<field name="model">customer_analysis.anaylsis</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<kanban>
<templates>
<t t-name="kanban-box">
<field name="customer"/>
<field name="represent"/>
<field name="phone"/>
<field name="location"/>
<field name="position"/>
<field name="package"/>
</t>
</templates>
</kanban>
</field>
</record>
请尝试此操作,这将有助于找到看板视图。