[UPD] odex_takaful: add context members_domain_force_all

This commit is contained in:
Samir Ladoui 2026-01-06 11:37:36 +01:00
parent f7854eccc7
commit c6afd7b7a9
1 changed files with 2 additions and 3 deletions

View File

@ -558,8 +558,7 @@
<field name="family_id"
attrs="{'invisible': [('sponsorship_type','=','group'), ('parent.record_type','=','sponsorship')],
'readonly': ['|', ('sponsorship_type', '!=', 'group'), ('parent.record_type','!=','donation')],
'required': [('hide_beneficiary_group','=', False),('sponsorship_type', '=','group'), ('parent.record_type','=','donation')]}"
groups="odex_takaful.sponsorship_system_manager_group"/>
'required': [('hide_beneficiary_group','=', False),('sponsorship_type', '=','group'), ('parent.record_type','=','donation')]}"/>
<field name="display_type" invisible="1"/>
<field name="sequence" invisible="1"/>
<field name="state" invisible="1"/>
@ -662,7 +661,7 @@
<page string="Orphans and Widows List"
attrs="{'invisible': ['|',('sponsorship_type', '!=', 'group'), ('hide_beneficiary_group', '=', True)]}">
<!-- attrs="{'invisible': ['|', '|', '|', ('hide_beneficiary_group','=', True), ('parent.record_type','!=','sponsorship'), ('sponsorship_type', '!=', 'group'), ('benefit_type', '!=', 'both')]}">-->
<field name="benefit_ids" nolabel="1" options="{'no_create': True}" context="{'group_by': 'benefit_group'}">
<field name="benefit_ids" nolabel="1" options="{'no_create': True}" context="{'group_by': 'benefit_group', 'members_domain_force_all': True}">
<tree editable="bottom">
<field name="benefit_group" invisible="1"/>
<field name="name"/>