Merge pull request #5944 from expsa/samir_aladawi_add_sponsor_phone

[UPD] odex_takaful: activate sms in takaful.sponsorship model
This commit is contained in:
SamirLADOUI-sa 2026-01-04 10:09:15 +01:00 committed by GitHub
commit 873dcb518e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ class TakafulSponsorship(models.Model):
record_url = fields.Char(string="Record URL", readonly=True)
is_canceled_refund = fields.Boolean()
def _sms_get_number_fields(self):
return ['sponsor_phone']
@api.depends('is_canceled_refund')
def cancel_refund_tamded(self):
for rec in self: