Skip to content

Commit

Permalink
[FIX] account_mass_reconcile : fix write-off with todays date
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Oct 25, 2023
1 parent a0c7436 commit c7f58b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_mass_reconcile/models/base_reconciliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
Expand Down

0 comments on commit c7f58b2

Please sign in to comment.