[FIX] project_todo: remove filter on project when converting a to-do
Before this commit, the conversion of to-do to task is performed through a form view on the project.task record. This view let the user pick a project for the current record. A domain is applied on the project_id field to only let the user select a project from the current selected companies. This commit removes that filter to only rely on the ir.rule of project.project instead. task-3458909 closes odoo/odoo#137111 X-original-commit: 8adc4e2f08e6e704c314cda21494bb3486a32fd2 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -159,8 +159,11 @@
|
||||
js_class="todo_conversion_form">
|
||||
<sheet>
|
||||
<group>
|
||||
<!-- company_id field is used in the domain filtering project_id in
|
||||
hr_timesheet. Creating a bridge module just to add that field is
|
||||
overkill so it is added here. -->
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="project_id"
|
||||
domain="['|', ('company_id', 'in', context.get('allowed_company_ids')), ('company_id', '=', False)]"
|
||||
required="1"
|
||||
placeholder="Select an existing project"
|
||||
default_focus="1"/>
|
||||
|
||||
Reference in New Issue
Block a user