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
jose-pcg committed May 20, 2024
1 parent 08d3f2f commit 7035412
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": "16.0.1.5.6",
"version": "16.0.1.5.7",
# 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 @@ -40,5 +40,6 @@ def _compute_name(self):
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 7035412

Please sign in to comment.