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 authored and moitabenfdz committed Nov 13, 2023
1 parent 59d6c06 commit 6eeafb3
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 @@ -74,7 +74,7 @@ def create(self, vals_list):
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 6eeafb3

Please sign in to comment.