[FIX] project: add default project in search more of parent task field
Before this commit, when the user wants to edit the parent task and clicks on Search more button, the search view has no project by default however, the default project to display in the search view could be the one set on the task. This commit adds a default project in the search view and this project will be the one set on the task in which the user wants to set a parent task. closes odoo/odoo#111125 X-original-commit: 8c3a4e7dff719b8f47ed289aabb4405a401655a4 Related: odoo/enterprise#36348 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -1534,7 +1534,7 @@
|
||||
<field name="recurrence_id" invisible="1" />
|
||||
</tree>
|
||||
<xpath expr="//field[@name='partner_id']" position="after">
|
||||
<field name="parent_id" optional="hide" attrs="{'invisible': [('allow_subtasks', '=', False)]}" groups="base.group_no_one"/>
|
||||
<field name="parent_id" optional="hide" context="{'search_view_ref' : 'project.view_task_search_form', 'search_default_display_project_id': project_id}" attrs="{'invisible': [('allow_subtasks', '=', False)]}" groups="base.group_no_one"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user