Skip to content
Snippets Groups Projects
Commit a02a4b5f authored by Luis Torres's avatar Luis Torres
Browse files

[FIX] account_edi_ubl_cii/l10n_it_edi: call to super fixed


The default value for ``test_mode`` on ``_post_invoice_edi`` is False,
so, if any of this modules is installed, the test_mode is overwrite to
False.

Now added missing parameter to avoid error on some tests.

closes odoo/odoo#99881

Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 9dffcc44
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ class AccountEdiFormat(models.Model):
self.ensure_one()
if self.code not in FORMAT_CODES:
return super()._post_invoice_edi(invoices)
return super()._post_invoice_edi(invoices, test_mode=test_mode)
res = {}
for invoice in invoices:
......
......@@ -301,7 +301,7 @@ class AccountEdiFormat(models.Model):
def _post_invoice_edi(self, invoices, test_mode=False):
# OVERRIDE
self.ensure_one()
edi_result = super()._post_invoice_edi(invoices)
edi_result = super()._post_invoice_edi(invoices, test_mode=test_mode)
if self.code != 'fattura_pa':
return edi_result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment