From abef7975c79857efee6df2d5d41035ccfc6ae21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20L=C3=B3pez?= Date: Fri, 17 May 2024 12:10:37 -0400 Subject: [PATCH] [IMP] l10n_do_accounting: do not query last sequence when creating invoice --- l10n_do_accounting/__manifest__.py | 2 +- l10n_do_accounting/models/monkey_patch.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/l10n_do_accounting/__manifest__.py b/l10n_do_accounting/__manifest__.py index 48713ce06..3768341dc 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": "14.0.2.19.2`", + "version": "14.0.2.19.3`", # 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/monkey_patch.py b/l10n_do_accounting/models/monkey_patch.py index 6038d33b1..dbff3d2c0 100644 --- a/l10n_do_accounting/models/monkey_patch.py +++ b/l10n_do_accounting/models/monkey_patch.py @@ -97,5 +97,6 @@ def date_key(move): and x.l10n_latam_document_type_id and not x.l10n_latam_manual_document_number and not x.l10n_do_enable_first_sequence + and x.state == "posted" ): move.with_context(is_l10n_do_seq=True)._set_next_sequence()