Browse Source

[FIX] coop_it_easy: Pick right email template for payment confirmation

pull/83/head
enricostano 5 years ago
parent
commit
9596730c89
  1. 6
      easy_my_coop/models/account_invoice.py

6
easy_my_coop/models/account_invoice.py

@ -100,18 +100,18 @@ class account_invoice(models.Model):
def send_certificate_email(self, certificate_email_template, sub_reg_line):
# we send the email with the certificate in attachment
certificate_email_template.sudo().send_mail(self.partner_id.id, False)
def set_cooperator_effective(self, effective_date):
sub_register_obj = self.env['subscription.register']
share_line_obj = self.env['share.line']
certificate_email_template = self.get_mail_template_certificate()
self.set_membership()
sequence_operation = self.get_sequence_operation()
sub_reg_operation = sequence_operation.next_by_id()
certificate_email_template = self.get_mail_template_certificate()
for line in self.invoice_line_ids:
sub_reg_vals = self.get_subscription_register_vals(line,
effective_date)

Loading…
Cancel
Save