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

I have difficulties adding new fields to the timesheet page tree view inside project.task.form.

This is what I have:

< odoo>
< data>
< record id='project_task_form_ext' model='ir.ui.view'>
< field name="name">project_task_form_ext< /field>
< field name="model">project.task< /field>
< field name="inherit_id" ref="project.view_task_form2" />
< field name="arch" type="xml"> 


< xpath expr="//notebook/page[2]/field[@name='timesheet_ids']/tree/field[@name='date']" position="after">

< field name="task_status" string="Status" /> 


< /xpath> 


< /field>
< /record>
< /data>
< /odoo>


But I get the error that it cannot be located in parent view.

I'm referring to this post: 

https://www.odoo.com/forum/help-1/add-a-field-in-a-tree-view-102117


Thank you

Avatar
Discard
Author Best Answer

Solution:
< xpath expr="//field[@name='timesheet_ids']/tree/field[@name='date']" position="after">

Avatar
Discard
Related Posts Replies Views Activity
2
Jul 24
940
1
Jun 24
3561
1
Oct 23
8589
1
Oct 23
97
1
Aug 23
2192