Merge pull request #5363 from expsa/fix/sponsor-logic-and-translation-20251112-015000
fix: Correct Sponsor/Donor Field Logic & Translation - 20251112
This commit is contained in:
commit
75e7f644a4
|
|
@ -1946,7 +1946,7 @@ msgstr "تفاصيل التبرع المرتبطة"
|
|||
#: model_terms:ir.ui.view,arch_db:odex_takaful.family_member_form_inherit_donation_button
|
||||
#: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_sponsorship_form
|
||||
msgid "Donation Details"
|
||||
msgstr "تفاصيل التبرع"
|
||||
msgstr "تفاصيل الكفالة/التبرع المشروط"
|
||||
|
||||
#. module: odex_takaful
|
||||
#: code:addons/odex_takaful/models/family_member.py:0
|
||||
|
|
|
|||
|
|
@ -153,11 +153,21 @@
|
|||
attrs="{'invisible': [('record_type','!=','sponsorship')], 'required': [('record_type','=','sponsorship')], 'readonly': [('state','!=','draft')]}"/>
|
||||
</div>
|
||||
|
||||
<label string="اسم الكافل/المتبرع" for="sponsor_id"/>
|
||||
<label string="اسم الكافل/المتبرع" for="sponsor_id"
|
||||
attrs="{
|
||||
'invisible': ['|',
|
||||
'&', ('record_type','=','donation'), ('sponsor_or_donor_type','=','unknown'),
|
||||
'&', ('record_type','=','sponsorship'), ('sponsor_donor_type','=','unknown')
|
||||
]
|
||||
}"/>
|
||||
<div class="o_row">
|
||||
<field name="sponsor_id" nolabel="1"
|
||||
context="{'form_view_ref': 'odex_takaful.view_takaful_sponsor_form'}"
|
||||
attrs="{
|
||||
'invisible': ['|',
|
||||
'&', ('record_type','=','donation'), ('sponsor_or_donor_type','=','unknown'),
|
||||
'&', ('record_type','=','sponsorship'), ('sponsor_donor_type','=','unknown')
|
||||
],
|
||||
'required': ['|',
|
||||
'&', ('record_type','=','donation'), ('sponsor_or_donor_type','=','registered'),
|
||||
'&', ('record_type','=','sponsorship'), ('sponsor_donor_type','=','registered')
|
||||
|
|
@ -188,6 +198,8 @@
|
|||
<field name="sponsor_phone" string="رقم الجوال" widget="phone"
|
||||
attrs="{
|
||||
'readonly': ['|',
|
||||
('state','!=','draft'),
|
||||
'|',
|
||||
'&', ('record_type','=','donation'), ('sponsor_or_donor_type','!=','unknown'),
|
||||
'&', ('record_type','=','sponsorship'), ('sponsor_donor_type','!=','unknown')
|
||||
]
|
||||
|
|
@ -259,7 +271,7 @@
|
|||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page name="sponsorship_details" string="Conditional Donation/Sponsorship Details">
|
||||
<page name="sponsorship_details" string="Donation Details">
|
||||
<field name="donations_details_lines"
|
||||
context="{'default_active_id': active_id,'default_donation_mechanism': 'without_conditions','default_start_date': sponsorship_creation_date}"
|
||||
widget="section_and_note_one2many"
|
||||
|
|
|
|||
Loading…
Reference in New Issue