[UPD] odex_takaful

This commit is contained in:
Samir Ladoui 2026-01-25 15:11:37 +01:00
parent 0f6ea9f546
commit 7cb8325c42
4 changed files with 16 additions and 3 deletions

View File

@ -7586,4 +7586,9 @@ msgstr "طباعة تقرير أم اليتيم/اليتيم"
#. module: odex_takaful
#: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_account_move_inherit_form
msgid "Previous Payments"
msgstr "المدفوعات السابقة"
msgstr "المدفوعات السابقة"
#. module: odex_takaful
#: model:res.groups,name:odex_takaful.group_refund_change_mobile
msgid "Change Sponsor Mobile in Refund Wizard"
msgstr "تغيير جوال الكافل في معالج الاسترداد"

View File

@ -92,11 +92,16 @@
<field name="implied_ids" eval="[(6, 0, [ref('group_kufula_user')])]"/>
</record>
<record id="group_sponsor_department_access" model="res.groups">
<record id="group_sponsor_department_access" model="res.groups">
<field name="name">Sponsor - Department Access</field>
<field name="category_id" ref="module_category_kufula"/>
</record>
<record id="group_refund_change_mobile" model="res.groups">
<field name="name">Change Sponsor Mobile in Refund Wizard</field>
<field name="category_id" ref="module_category_kufula"/>
</record>
<record id="donation_officer_restrictions" model="ir.rule">
<field name="name">Donations Officer: Own Donations</field>
<field name="model_id" ref="model_takaful_sponsorship"/>

View File

@ -149,6 +149,8 @@ class EsterdadWizard(models.Model):
})
if rec.sponsor_id.sponsor_or_donor_type == 'unknown' and not rec.sponsor_id.sponsor_phone:
rec.sponsor_id.sponsor_phone = rec.mobile
if rec.sponsor_id.sponsor_or_donor_type == 'registered' and rec.id_num:
rec.sponsor_id.sponsor_id.id_number == rec.id_num
# context['default_payment_ids'] = [(6, 0, rec.payment_ids.ids)]
view = self.env.ref('odex_takaful.view_otp_wizard_form')
return {

View File

@ -50,7 +50,8 @@
<page string="بيانات المتبرع">
<group>
<field name="sponsor_name"/>
<field name="mobile"/>
<field name="mobile" groups="odex_takaful.group_refund_change_mobile" />
<field name="mobile" groups="!odex_takaful.group_refund_change_mobile" readonly="1" />
<field name="id_num"/>
</group>
</page>