[UPD] odex_takaful
This commit is contained in:
parent
fa75f33311
commit
037eed2a4b
|
|
@ -313,7 +313,10 @@
|
|||
<field name="perm_unlink" eval="0"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="group_update_sensible_fields" model="res.groups">
|
||||
<field name="name">Updating Months Count & Start Date</field>
|
||||
<field name="category_id" ref="module_category_kufula"/>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -275,10 +275,24 @@
|
|||
<field name="payment_option"
|
||||
attrs="{'invisible': [('sponsorship_duration','!=','temporary')], 'required': [('sponsorship_duration','=','temporary')], 'readonly': [('parent_state', '!=', 'draft')]}"
|
||||
readonly="1" force_save="1" />
|
||||
<field name="payment_month_count"
|
||||
attrs="{'invisible': ['&', ('sponsorship_duration','!=','temporary'), ('direct_debit', '=', False)], 'required': [('sponsorship_duration','=','temporary')], 'readonly': [('parent_state', '!=', 'draft')]}" />
|
||||
<field name="start_date" string="Start Date" widget="date"
|
||||
attrs="{'invisible': ['&', ('sponsorship_duration', '!=', 'temporary'), ('direct_debit', '=', False)], 'required': [('sponsorship_duration', '=','temporary')], 'readonly': [('parent_state', '!=', 'draft')]}" />
|
||||
<field name="payment_month_count" groups="!odex_takaful.group_update_sensible_fields" attrs="{
|
||||
'invisible': ['&', ('sponsorship_duration','!=','temporary'), ('direct_debit', '=', False)],
|
||||
'required': [('sponsorship_duration','=','temporary')],
|
||||
'readonly': [('parent_state', '!=', 'draft')]
|
||||
}" />
|
||||
<field name="payment_month_count" groups="odex_takaful.group_update_sensible_fields" attrs="{
|
||||
'invisible': ['&', ('sponsorship_duration','!=','temporary'), ('direct_debit', '=', False)],
|
||||
'required': [('sponsorship_duration','=','temporary')]
|
||||
}" />
|
||||
<field name="start_date" string="Start Date" widget="date" groups="!odex_takaful.group_update_sensible_fields" attrs="{
|
||||
'invisible': ['&', ('sponsorship_duration', '!=', 'temporary'), ('direct_debit', '=', False)],
|
||||
'required': [('sponsorship_duration', '=','temporary')],
|
||||
'readonly': [('parent_state', '!=', 'draft')]
|
||||
}" />
|
||||
<field name="start_date" string="Start Date" widget="date" groups="odex_takaful.group_update_sensible_fields" attrs="{
|
||||
'invisible': ['&', ('sponsorship_duration', '!=', 'temporary'), ('direct_debit', '=', False)],
|
||||
'required': [('sponsorship_duration', '=','temporary')]
|
||||
}" />
|
||||
<field name="end_date" string="End Date" widget="date"
|
||||
attrs="{'invisible': ['&', ('sponsorship_duration', '!=', 'temporary'), ('direct_debit', '=', False)], 'readonly': [('parent_state', '!=', 'draft')]}" />
|
||||
</group>
|
||||
|
|
|
|||
Loading…
Reference in New Issue