From c7f58b2ed6df4c0177f51abc853ae3f622d57a4c Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 25 Oct 2023 14:32:50 +0200 Subject: [PATCH] [FIX] account_mass_reconcile : fix write-off with todays date --- account_mass_reconcile/models/base_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_mass_reconcile/models/base_reconciliation.py b/account_mass_reconcile/models/base_reconciliation.py index d57f57f563..31af889435 100644 --- a/account_mass_reconcile/models/base_reconciliation.py +++ b/account_mass_reconcile/models/base_reconciliation.py @@ -172,7 +172,7 @@ def create_write_off(self, lines, amount, amount_curr, same_curr): move = self.env["account.move"].create( { - "date": lines.env.context.get("date_p"), + "date": lines.env.context.get("date_p") or fields.Date.today(), "journal_id": journal.id, "currency_id": currency.id, "line_ids": [(0, 0, write_off_vals), (0, 0, counter_part)],