Skip to content

Commit

Permalink
[FIX] account_move_name_sequence: issue OCA#1465 vals get refund_sequ…
Browse files Browse the repository at this point in the history
…ence true if value not get in vals
  • Loading branch information
RodrigoBM committed Dec 2, 2022
1 parent 2b08c68 commit a04318c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_move_name_sequence/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create(self, vals):
vals["sequence_id"] = self._create_sequence(vals).id
if (
vals.get("type") in ("sale", "purchase")
and vals.get("refund_sequence")
and vals.get("refund_sequence", True)
and not vals.get("refund_sequence_id")
):
vals["refund_sequence_id"] = self._create_sequence(vals, refund=True).id
Expand Down

0 comments on commit a04318c

Please sign in to comment.