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 Nov 28, 2022
1 parent 3b35768 commit 82de139
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 @@ -73,7 +73,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 82de139

Please sign in to comment.