[UPD] odex_takaful
This commit is contained in:
parent
0f6ea9f546
commit
7cb8325c42
|
|
@ -7586,4 +7586,9 @@ msgstr "طباعة تقرير أم اليتيم/اليتيم"
|
||||||
#. module: odex_takaful
|
#. module: odex_takaful
|
||||||
#: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_account_move_inherit_form
|
#: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_account_move_inherit_form
|
||||||
msgid "Previous Payments"
|
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 "تغيير جوال الكافل في معالج الاسترداد"
|
||||||
|
|
|
||||||
|
|
@ -92,11 +92,16 @@
|
||||||
<field name="implied_ids" eval="[(6, 0, [ref('group_kufula_user')])]"/>
|
<field name="implied_ids" eval="[(6, 0, [ref('group_kufula_user')])]"/>
|
||||||
</record>
|
</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="name">Sponsor - Department Access</field>
|
||||||
<field name="category_id" ref="module_category_kufula"/>
|
<field name="category_id" ref="module_category_kufula"/>
|
||||||
</record>
|
</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">
|
<record id="donation_officer_restrictions" model="ir.rule">
|
||||||
<field name="name">Donations Officer: Own Donations</field>
|
<field name="name">Donations Officer: Own Donations</field>
|
||||||
<field name="model_id" ref="model_takaful_sponsorship"/>
|
<field name="model_id" ref="model_takaful_sponsorship"/>
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,8 @@ class EsterdadWizard(models.Model):
|
||||||
})
|
})
|
||||||
if rec.sponsor_id.sponsor_or_donor_type == 'unknown' and not rec.sponsor_id.sponsor_phone:
|
if rec.sponsor_id.sponsor_or_donor_type == 'unknown' and not rec.sponsor_id.sponsor_phone:
|
||||||
rec.sponsor_id.sponsor_phone = rec.mobile
|
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)]
|
# context['default_payment_ids'] = [(6, 0, rec.payment_ids.ids)]
|
||||||
view = self.env.ref('odex_takaful.view_otp_wizard_form')
|
view = self.env.ref('odex_takaful.view_otp_wizard_form')
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,8 @@
|
||||||
<page string="بيانات المتبرع">
|
<page string="بيانات المتبرع">
|
||||||
<group>
|
<group>
|
||||||
<field name="sponsor_name"/>
|
<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"/>
|
<field name="id_num"/>
|
||||||
</group>
|
</group>
|
||||||
</page>
|
</page>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue