Browse Source

[FIX] create needs api.model decorator

pull/33/head
robin.keunen 5 years ago
parent
commit
8e8a68a248
  1. 1
      easy_my_coop_loan/models/loan_issue_line.py

1
easy_my_coop_loan/models/loan_issue_line.py

@ -57,6 +57,7 @@ class LoanIssueLine(models.Model):
string="Company", string="Company",
readonly=True) readonly=True)
@api.model
def create(self, vals): def create(self, vals):
mail_template = 'easy_my_coop_loan.loan_subscription_confirmation' mail_template = 'easy_my_coop_loan.loan_subscription_confirmation'
confirmation_mail_template = self.env.ref(mail_template, False) confirmation_mail_template = self.env.ref(mail_template, False)

Loading…
Cancel
Save