Add Domain on sponsership

This commit is contained in:
odoo-syria-team 2025-11-13 16:07:39 +03:00
parent 90597f5a75
commit baa1ceebd0
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@
<group>
<group string="Donation Information">
<field name="ages" />
<field name="ages" invisible="1" />
<field name="donation_type" invisible="1"/>
<field name="donation_types"
attrs="{'invisible': [('donation_type', '!=', 'donation')], 'readonly': [('parent_state', '!=', 'draft')]}" />

View File

@ -509,7 +509,7 @@
</header>
<group>
<group>
<field name="ages" />
<field name="ages" invisible="1"/>
<field name="family_id"
attrs="{'invisible': [('sponsorship_type','=','group'), ('parent.record_type','=','sponsorship')],
'readonly': ['|', ('sponsorship_type', '!=', 'group'), ('parent.record_type','!=','donation')],