From 0431370e22305f6cf3916f1c82bd7d4417c1b888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20L=C3=B3pez?= Date: Thu, 29 Feb 2024 08:18:39 -0400 Subject: [PATCH] [FIX] l10n_do_accounting: ValueError: day is out of range for month --- l10n_do_accounting/__manifest__.py | 2 +- l10n_do_accounting/models/ir_sequence.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/l10n_do_accounting/__manifest__.py b/l10n_do_accounting/__manifest__.py index 153eb11e9..e8547ffe7 100644 --- a/l10n_do_accounting/__manifest__.py +++ b/l10n_do_accounting/__manifest__.py @@ -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 diff --git a/l10n_do_accounting/models/ir_sequence.py b/l10n_do_accounting/models/ir_sequence.py index 9cd00bfa6..b04fea026 100644 --- a/l10n_do_accounting/models/ir_sequence.py +++ b/l10n_do_accounting/models/ir_sequence.py @@ -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