[FIX] Edit and invisible fields

This commit is contained in:
odoo-syria-team 2025-11-19 11:29:40 +03:00
parent 2d441a0f46
commit 6bbfce877f
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -90,11 +90,11 @@
</div>
</group>
<group>
<field name="kafel_id" readonly="1"/>
<field name="kafel_id" readonly="1" invisible="1"/>
</group>
<group name="group_top">
<group name="group_main" colspan="2">
<field name="mobile" string="رقم الجوال" widget="phone" placeholder="05xxxxxxxx" attrs="{'required': [('parent_id', '=', False)]}" options="{'maxlength': 10}"/>
<field name="mobile" string="رقم الجوال" widget="phone" placeholder="05xxxxxxxx" attrs="{'required': [('parent_id', '=', False)]}" />
<field name="preferred_communication" string="طريقة التواصل المفضلة" required="1"/>
<field name="gender" attrs="{'required': [('company_type', '=', 'person')],'invisible': [('company_type', '!=', 'person')]}"/>
<field name="street" attrs="{'invisible': [('company_type', '=', 'person')]}"/>