Merge pull request #6018 from expsa/samir_aladawi_sequnce_code_creation
[FIX] odex_takaful: bypass changing sponsor phone when sponsor is faa…
This commit is contained in:
commit
ff7cf33f8f
|
|
@ -236,7 +236,8 @@ class TakafulSponsorship(models.Model):
|
||||||
@api.depends('sponsor_id','sponsor_id.mobile')
|
@api.depends('sponsor_id','sponsor_id.mobile')
|
||||||
def _compute_sponsor_phone(self):
|
def _compute_sponsor_phone(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
rec.sponsor_phone = rec.sponsor_id.mobile if rec.sponsor_id else False
|
if rec.sponsor_id.id != rec.env.company.faal_kheer_partner_id.id:
|
||||||
|
rec.sponsor_phone = rec.sponsor_id.mobile if rec.sponsor_id else False
|
||||||
|
|
||||||
def compute_days_after_payment(self):
|
def compute_days_after_payment(self):
|
||||||
"""Check if the number of hours passed after payment is within the configured limit"""
|
"""Check if the number of hours passed after payment is within the configured limit"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue