[FIX] data_recycle: adapt form views to grid
Before this commit, the frequency fields were not aligned. This is due to the new CSS grid system in the form views for inner groups. This commit reorganize the arch itself to have the the relevant fields and their business modifiers in the same cell of the inner group. It not only makes sense technically, it does so in business terms as well. closes odoo/odoo#102578 X-original-commit: d4118297dd6116fbd2ccefe27b09e9e4b7d5b412 Related: odoo/enterprise#32475 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
@@ -47,13 +47,14 @@
|
||||
<field name="include_archived" attrs="{'invisible': [('recycle_action', '!=', 'unlink')]}"/>
|
||||
|
||||
<!-- Manual cleaning -->
|
||||
<field name="notify_user_ids" widget="many2many_tags" attrs="{'invisible': [('recycle_mode', '=', 'automatic')]}" options="{'no_create': True, 'no_edit': True}" domain="[('share', '=', False)]" />
|
||||
|
||||
<label for="notify_frequency" invisible="1" />
|
||||
<div class="o_row" attrs="{'invisible': ['|', ('recycle_mode', '=', 'automatic'), ('notify_user_ids', '=', [])]}">
|
||||
<span class="me-1">Every</span>
|
||||
<field name="notify_frequency" attrs="{'required': [('notify_user_ids', '!=', [])]}" />
|
||||
<field name="notify_frequency_period" attrs="{'required': [('notify_user_ids', '!=', [])]}" />
|
||||
<label for="notify_user_ids" attrs="{'invisible': [('recycle_mode', '=', 'automatic')]}" />
|
||||
<div attrs="{'invisible': [('recycle_mode', '=', 'automatic')]}">
|
||||
<field name="notify_user_ids" widget="many2many_tags" options="{'no_create': True, 'no_edit': True}" domain="[('share', '=', False)]" nolabel="1"/>
|
||||
<div class="d-flex w-25" attrs="{'invisible': [('notify_user_ids', '=', [])]}">
|
||||
<span class="me-1">Every</span>
|
||||
<field name="notify_frequency" attrs="{'required': [('notify_user_ids', '!=', [])]}" />
|
||||
<field name="notify_frequency_period" attrs="{'required': [('notify_user_ids', '!=', [])]}" />
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user