[FIX] hr_timesheet: Display task related to selected Project
Before this commit there was no Domain on field `task_id` on this form view. (This was already present on `Before this commit there was on Domain `) After this commit user can select the Task of the Selected Project only. closes odoo/odoo#48170 X-original-commit: 3c5a23118138bedb3d956f98ec8e48357ca201e2 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
committed by
Yannick Tivisse
parent
12fd8c37fd
commit
3754cdf517
@@ -87,7 +87,7 @@
|
||||
<group>
|
||||
<field name="date"/>
|
||||
<field name="project_id" required="1" context="{'form_view_ref': 'project.project_project_view_form_simplified',}"/>
|
||||
<field name="task_id" widget="task_with_hours"/>
|
||||
<field name="task_id" widget="task_with_hours" context="{'default_project_id': project_id}" domain="[('project_id', '=', project_id)]"/>
|
||||
<field name="name"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user