[FIX] project: fix recurrence boolean should be hidden issue

Description of the issue/feature this PR addresses:
In project module, when sub-tasks is created then recurrence boolean field
should not be visible in that task. It only visible in parent tasks.

Current behavior before PR:
recurrence field is visible in sub-tasks.

Desired behavior after PR is merged:
recurrence field is not visible in sub-tasks.

task-3252521

closes odoo/odoo#120601

X-original-commit: c122da61dba916c74bca4c6994a289099d73eaa4
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
ravb-odoo
2023-05-05 00:39:52 +02:00
parent 5881af92d8
commit c9637fd3bd
+1 -1
View File
@@ -346,7 +346,7 @@
<field name="date_deadline" nolabel="1"/>
<field name="recurring_task" nolabel="1" class="ms-0" style="width: fit-content;"
widget="boolean_icon" options="{'icon': 'fa-repeat'}"
attrs="{'invisible': ['|', ('allow_recurring_tasks', '=', False), ('active', '=', False)]}"
attrs="{'invisible': ['|', '|', ('allow_recurring_tasks', '=', False), ('active', '=', False), ('parent_id', '!=', False)]}"
groups="project.group_project_recurring_tasks"
/>
</div>