You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
412 B

  1. from odoo import models
  2. EMAIL_TEMPLATE_IDS = [
  3. "easy_my_coop_loan.loan_subscription_confirmation",
  4. "easy_my_coop_loan.loan_issue_payment_request",
  5. ]
  6. class MailTemplate(models.Model):
  7. _inherit = "mail.template"
  8. def init(self):
  9. for template_id in EMAIL_TEMPLATE_IDS:
  10. mail_template = self.env.ref(template_id)
  11. mail_template.easy_my_coop = True