[FIX] project: force the project sharing form view for subtasks
Before this commit, when we do a fields_view_get in unit test, we get the form view of project task view in backend and not the project sharing form view in project sharing feature. This commit adds in the context the `xml_id` of the form view used in project sharing feature. task-2633229 closes #77156 X-original-commit: 7dfb44e703f9ff8293412030cfd308e2545f121c
This commit is contained in:
@@ -188,7 +188,7 @@
|
||||
<field name="description" type="html" options="{'collaborative': true}"/>
|
||||
</page>
|
||||
<page name="sub_tasks_page" string="Sub-tasks" attrs="{'invisible': [('allow_subtasks', '=', False)]}">
|
||||
<field name="child_ids" context="{'default_project_id': project_id if not parent_id or not display_project_id else display_project_id, 'default_user_ids': [(6, 0, [uid])], 'default_parent_id': id, 'default_partner_id': partner_id}">
|
||||
<field name="child_ids" context="{'default_project_id': project_id if not parent_id or not display_project_id else display_project_id, 'default_user_ids': [(6, 0, [uid])], 'default_parent_id': id, 'default_partner_id': partner_id, 'form_view_ref' : 'project.project_sharing_project_task_view_form'}">
|
||||
<tree editable="bottom">
|
||||
<field name="project_id" invisible="1"/>
|
||||
<field name="is_closed" invisible="1"/>
|
||||
|
||||
Reference in New Issue
Block a user