diff --git a/addons/account_edi_ubl_cii/models/account_edi_format.py b/addons/account_edi_ubl_cii/models/account_edi_format.py index 0bbf5c89d85..6f3e9aed969 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_format.py +++ b/addons/account_edi_ubl_cii/models/account_edi_format.py @@ -119,9 +119,9 @@ class AccountEdiFormat(models.Model): 'raw': xml_content, 'mimetype': 'application/xml', } - # we don't want the Factur-X and E-FFF xml to appear in the attachment of the invoice when confirming it - # E-FFF will appear after the pdf is generated, Factur-X will never appear (it's contained in the PDF) - if self.code not in ['facturx_1_0_05', 'efff_1']: + # we don't want the Factur-X, E-FFF and NLCIUS xml to appear in the attachment of the invoice when confirming it + # E-FFF and NLCIUS will appear after the pdf is generated, Factur-X will never appear (it's contained in the PDF) + if self.code not in ['facturx_1_0_05', 'efff_1', 'nlcius_1']: attachment_create_vals.update({'res_id': invoice.id, 'res_model': 'account.move'}) attachment = self.env['ir.attachment'].create(attachment_create_vals)