[FIX] loyalty: fix next order coupon mail template

Default mail template for coupon on next order was linked to the gift
card mail template, but it should be linked to loyalty coupon card.

OPW-3281621

closes odoo/odoo#124927

X-original-commit: ece055c105a3a1cbd3621f25765668594af9837e
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
This commit is contained in:
Valentin Vallaeys (vava)
2023-06-14 17:14:43 +02:00
parent 39d1035952
commit 54c3513026
+4 -1
View File
@@ -331,7 +331,10 @@ class LoyaltyProgram(models.Model):
})],
'communication_plan_ids': [(5, 0, 0), (0, 0, {
'trigger': 'create',
'mail_template_id': (self.env.ref('loyalty.mail_template_gift_card', raise_if_not_found=False) or self.env['mail.template']).id,
'mail_template_id': (
self.env.ref('loyalty.mail_template_loyalty_card', raise_if_not_found=False)
or self.env['mail.template']
).id,
})],
},
}