Browse Source

Revert "[FIX] call get mail template function on line instead of self"

This reverts commit 476dbdaa44.
pull/46/head
houssine 5 years ago
parent
commit
bbef93f9cc
  1. 4
      easy_my_coop_loan/models/loan_issue_line.py

4
easy_my_coop_loan/models/loan_issue_line.py

@ -67,9 +67,9 @@ class LoanIssueLine(models.Model):
@api.model @api.model
def create(self, vals): def create(self, vals):
line = super(LoanIssueLine, self).create(vals)
confirmation_mail_template = self.get_loan_sub_mail_template()
confirmation_mail_template = line.get_loan_sub_mail_template()
line = super(LoanIssueLine, self).create(vals)
confirmation_mail_template.send_mail(line.id) confirmation_mail_template.send_mail(line.id)
return line return line

Loading…
Cancel
Save