Skip to content

Commit

Permalink
Merge branch '14.0' into 15.0-fix-003-jl
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-pcg committed Feb 26, 2024
2 parents 1cfa716 + ed6d78e commit dc82d50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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.0",
"version": "15.0.0.14.1",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
4 changes: 3 additions & 1 deletion l10n_do_accounting/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ def _l10n_do_is_new_expiration_date(self):
),
("posted_before", "=", True),
("id", "!=", self.id or self._origin.id),
("l10n_do_ncf_expiration_date", "!=", False),
],
order="invoice_date, id desc",
order="invoice_date desc, id desc",
limit=1,
)
if not last_invoice:
Expand All @@ -203,6 +204,7 @@ def _compute_l10n_do_show_expiration_date_msg(self):
and inv.l10n_latam_document_type_id
and inv.country_code == "DO"
and not inv.l10n_latam_manual_document_number
and inv.l10n_do_ncf_expiration_date
)
for invoice in l10n_do_internal_invoices:
invoice.l10n_do_show_expiration_date_msg = invoice._l10n_do_is_new_expiration_date()
Expand Down

0 comments on commit dc82d50

Please sign in to comment.