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,6 +236,7 @@ class TakafulSponsorship(models.Model):
|
|||
@api.depends('sponsor_id','sponsor_id.mobile')
|
||||
def _compute_sponsor_phone(self):
|
||||
for rec in self:
|
||||
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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue