diff --git a/account_credit_control/__manifest__.py b/account_credit_control/__manifest__.py index 2edccdf06..3ee6ee905 100644 --- a/account_credit_control/__manifest__.py +++ b/account_credit_control/__manifest__.py @@ -3,7 +3,7 @@ # Copyright 2017 Okia SPRL (https://okia.be) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Account Credit Control', - 'version': '10.0.1.3.0', + 'version': '10.0.1.3.1', 'author': "Camptocamp,Odoo Community Association (OCA),Okia", 'maintainer': 'Camptocamp', 'category': 'Finance', diff --git a/account_credit_control/wizard/credit_control_communication.py b/account_credit_control/wizard/credit_control_communication.py index 36570cc09..be89a2598 100644 --- a/account_credit_control/wizard/credit_control_communication.py +++ b/account_credit_control/wizard/credit_control_communication.py @@ -162,7 +162,6 @@ class CreditCommunication(models.TransientModel): def _generate_emails(self): """ Generate email message using template related to level """ emails = self.env['mail.mail'] - attachments = self.env['ir.attachment'] required_fields = ['subject', 'body_html', 'email_from', @@ -188,7 +187,7 @@ class CreditCommunication(models.TransientModel): comm.credit_control_line_ids.write({'mail_message_id': email.id, 'state': state}) - + attachments = self.env['ir.attachment'] for att in email_values.get('attachments', []): attach_fname = att[0] attach_datas = att[1]