Skip to Content
Menu
This question has been flagged
1 Reply
1951 Views

here my XML code, i have a problem when try to add a wigdet into kanban view of project.
my problem is element <xpath expr="//t[@t-name='kanban-box']//div[@class='o_primary']" position="after"Cannot locate in parent view??

<record model="ir.ui.view" id="view_task_kanban_inherit">
<field name="name">project.task</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_kanban"/>
<field name="arch" type="xml">
<xpath expr="//templates" position="before">
<field name="checklist_progress"/>
<field name="max_rate"/>
</xpath>
<xpath expr="//t[@t-name='kanban-box']//div[@class='o_primary']" position="after">
<li>
<field name="checklist_progress" widget="gauge" style="width:80px;height:50px;cursor:pointer;"
options="{'max_field': 'max_rate'}">
Entry Progress
</field>
</li>
</xpath>
</field>
</record>
Avatar
Discard
Best Answer

Hi,

I think you need to add a widget into kanban view of the project. But in your code you are trying to extend kanban view of task. Also there is no 'o_primary' class located in the task kanban.


Thanks

Avatar
Discard
Related Posts Replies Views Activity
9
Jun 23
11130
2
Jan 22
2732
2
Dec 21
6267
0
Jun 21
1007
0
Feb 21
1540