Skip to content

Commit

Permalink
[IMP] l10n_do_accounting: do not query last sequence when creating in…
Browse files Browse the repository at this point in the history
…voice
  • Loading branch information
jose-pcg committed May 17, 2024
1 parent c99e3ec commit abef797
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": "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
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 @@ -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()

0 comments on commit abef797

Please sign in to comment.