Skip to content

Commit

Permalink
[FIX] l10n_do_accounting: ValueError: day is out of range for month
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-pcg committed Feb 29, 2024
1 parent bd99e2a commit 0431370
Show file tree
Hide file tree
Showing 2 changed files with 3 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": "13.0.1.13.1",
"version": "13.0.1.13.2",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
3 changes: 2 additions & 1 deletion l10n_do_accounting/models/ir_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class IrSequence(models.Model):
expiration_date = fields.Date(
string="NCF Expiration date",
default=fields.Date.end_of(
fields.Date.today().replace(year=fields.Date.today().year + 1), "year"
fields.Date.today().replace(month=12, year=fields.Date.today().year + 1),
"year",
),
)
# TODO: Note for anyone from the future: use l10n_do prefix on v14, for God sake

0 comments on commit 0431370

Please sign in to comment.