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
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
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) |
|
|
|