diff --git a/odex25_takaful/odex_takaful/data/takaful_notification_mail_template.xml b/odex25_takaful/odex_takaful/data/takaful_notification_mail_template.xml index 4ff2f0db6..6d593569d 100644 --- a/odex25_takaful/odex_takaful/data/takaful_notification_mail_template.xml +++ b/odex25_takaful/odex_takaful/data/takaful_notification_mail_template.xml @@ -1,13 +1,14 @@ - + Sponsorship Confirmation Email ${ctx.get('email_from')} or ''} ${ctx.get('email_to')} Sponsorship Confirmation - ${object.sponsor_id.name} False - + + ${(object.name or '').replace('/','_')} ar_001 @@ -17,7 +18,7 @@

Amount: ${object.total_sponsorship_amount} ${object.currency_id.name}

Link: - + Open Sponsorship Receipt

@@ -27,7 +28,7 @@ ]]>
- + Esterdad Confirmation Email ${ctx.get('email_from')} or ''} ${ctx.get('email_to')} @@ -37,6 +38,8 @@ ar_001 + + ${(object.name or '').replace('/','_')} Dear ${object.sponsor_id.name},

Your refund request has been confirmed.

@@ -44,7 +47,7 @@

Reason: ${object.cancel_record_id.cancel_reason.name}

Link: - + Open Sponsorship Receipt

diff --git a/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py b/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py index 79dc8dd49..1322c5c35 100644 --- a/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py +++ b/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py @@ -134,14 +134,12 @@ class TakafulSponsorship(models.Model): def action_quotation_send(self): self.ensure_one() - print('self.state >>>> ' , self.state) if self.state != 'canceled': - template = self.env.ref('odex_takaful.email_template_sponsorship_confirmation1') + template = self.env.ref('odex_takaful.email_template_sponsorship_confirmation10') else: - template = self.env.ref('odex_takaful.email_template_esterdad_confirmation3') + template = self.env.ref('odex_takaful.email_template_esterdad_confirmation20') lang = self.env.context.get('lang') - print('cancel_record_id >>>> ' , self.cancel_record_id.cancel_reason.name) if template.lang: lang = template._render_lang(self.ids)[self.id] diff --git a/odex25_takaful/odex_takaful/reports/sponsorship_receipt_report.xml b/odex25_takaful/odex_takaful/reports/sponsorship_receipt_report.xml index 23fa290c2..3d7bf02f7 100644 --- a/odex25_takaful/odex_takaful/reports/sponsorship_receipt_report.xml +++ b/odex25_takaful/odex_takaful/reports/sponsorship_receipt_report.xml @@ -11,18 +11,19 @@
-
+ transform: rotate(35deg); + transform-origin: center; + z-index: 0; + pointer-events: none;"> Canceled
diff --git a/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml b/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml index 394cc8d54..b69d32336 100644 --- a/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml +++ b/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml @@ -58,7 +58,7 @@ attrs="{'invisible': ['|','|',('state','not in',['paid','partial_refund','under_replacement','replacement_done']),('record_type','!=','donation'), ('cancel_refund', '=', True)]}"/>