From 6018211edd15546099c01319200d70e1e4e05a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20L=C3=B3pez?= Date: Mon, 14 Aug 2023 11:58:14 -0400 Subject: [PATCH] [IMP] l10n_do_accounting: include ecf invoices on button_cancel validations (#1082) --- l10n_do_accounting/__manifest__.py | 2 +- l10n_do_accounting/models/account_move.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/l10n_do_accounting/__manifest__.py b/l10n_do_accounting/__manifest__.py index e699c2b91..4dadbc3b9 100644 --- a/l10n_do_accounting/__manifest__.py +++ b/l10n_do_accounting/__manifest__.py @@ -8,7 +8,7 @@ "category": "Localization", "license": "LGPL-3", "website": "https://github.com/odoo-dominicana", - "version": "15.0.0.11.1", + "version": "15.0.0.11.2", # any module necessary for this one to work correctly "depends": ["l10n_latam_invoice_document", "l10n_do"], # always loaded diff --git a/l10n_do_accounting/models/account_move.py b/l10n_do_accounting/models/account_move.py index 5caa52223..5ac747fee 100644 --- a/l10n_do_accounting/models/account_move.py +++ b/l10n_do_accounting/models/account_move.py @@ -466,7 +466,6 @@ def button_cancel(self): lambda inv: inv.country_code == "DO" and self.move_type[-6:] in ("nvoice", "refund") and inv.l10n_latam_use_documents - and not inv.is_ecf_invoice ) if len(fiscal_invoice) > 1: