Browse Source

Merge pull request #83 from coopdevs/fix/payment-received-email-template

[FIX] coop_it_easy: Pick right email template for payment confirmation
pull/92/head
Houssine BAKKALI 4 years ago
committed by GitHub
parent
commit
cd8b2e6b1b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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