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)],