Skip to content

Commit

Permalink
[IMP] l10n_do_accounting: do not query for new sequence if already ha…
Browse files Browse the repository at this point in the history
…ve one
  • Loading branch information
jlopezg committed May 20, 2024
1 parent 1686736 commit 02d53b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_do_accounting/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions l10n_do_accounting/models/monkey_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 02d53b3

Please sign in to comment.