[FIX] project: recurrent task layout

The main goal of this commit, is to add missing `colspan="2"`.
We also hide the div and its label at the same time.

Steps to reproduce:
* Open Project
* Select a project
* Select a task
* Click on Recurrent checkbox (if not checked)
* Select the Recurrent Notebook => BUG

closes odoo/odoo#102444

X-original-commit: 398d5bc03adf040968494b526ba1f34b8e2cc227
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
This commit is contained in:
Romeo Fragomeli
2022-10-07 10:07:38 +02:00
parent 9f37a9d93d
commit 9f0bdc121d
+3 -3
View File
@@ -1266,7 +1266,7 @@
</field>
</page>
<page name="recurrence" string="Recurrent" groups="project.group_project_recurring_tasks">
<span class="o_form_label"> Recurrent </span>
<label for="recurring_task" />
<field name="recurring_task" attrs="{'invisible': ['|', ('allow_recurring_tasks', '=', False), ('active', '=', False)]}"/>
<group attrs="{'invisible': [('recurring_task', '=', False)]}">
<group>
@@ -1280,7 +1280,7 @@
</div>
<label for="repeat_on_month" string="Repeat On" attrs="{'invisible': [('repeat_unit', 'not in', ('month', 'year'))]}" />
<div class="o_row">
<div class="o_row" attrs="{'invisible': [('repeat_unit', 'not in', ('month', 'year'))]}">
<field name="repeat_on_month" attrs="{'invisible': [('repeat_unit', '!=', 'month')], 'required': [('repeat_unit', '=', 'month')]}" />
<field name="repeat_on_year" attrs="{'invisible': [('repeat_unit', '!=', 'year')], 'required': [('repeat_unit', '=', 'year')]}" />
@@ -1308,7 +1308,7 @@
</group>
</group>
<group attrs="{'invisible': ['|', ('recurring_task', '=', False), ('recurrence_message', '=', False)]}">
<div class="alert alert-success o_form_project_recurrence_message" role="status">
<div class="alert alert-success o_form_project_recurrence_message" role="status" colspan="2">
<field name="recurrence_message" widget="html" class="mb-0" />
</div>
</group>