From 12aa6539eaed67a4c558111212272e8fc8f0edce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20L=C3=B3pez?= Date: Mon, 20 May 2024 14:40:44 -0400 Subject: [PATCH] [IMP] l10n_do_accounting: do not query for new sequence if already have one --- 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 381d8dbc..96162021 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.14.3", + "version": "15.0.0.14.4", # 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 dbff3d2c..e613d3fc 100644 --- a/l10n_do_accounting/models/monkey_patch.py +++ b/l10n_do_accounting/models/monkey_patch.py @@ -98,5 +98,6 @@ def date_key(move): and not x.l10n_latam_manual_document_number and not x.l10n_do_enable_first_sequence and x.state == "posted" + and not x.l10n_do_fiscal_number ): move.with_context(is_l10n_do_seq=True)._set_next_sequence()