Advertisement
rht_odoo

[QW][4535462]context_show_in_project

Feb 3rd, 2025 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.02 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 03/02/3035
  4.    Ticket : https://www.odoo.com/odoo/project/5686/tasks/4535462
  5.    Pastebin :https://pastebin.com/Pc9fFnVa
  6.    Need : Adapt the context of the subtaskcreation from the parent task, so that - by default - the task is visible in the project
  7.    -->
  8.     <xpath expr="//field[@name='child_ids']" position="attributes">
  9.         <attribute name="context">{                                         'default_project_id': project_id,                                         'default_display_in_project': True,                                         'default_user_ids': user_ids,                                         'default_parent_id': id,                                         'default_partner_id': partner_id,                                         'default_milestone_id': allow_milestones and milestone_id,                                         'kanban_view_ref': 'project.project_sub_task_view_kanban_mobile',                                    }</attribute>
  10.     </xpath>
  11. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement