[FIX] account_move_name_sequence: issue #1465 vals get refund_sequence true if value not get in vals
This commit is contained in:
parent
2d5f794ed5
commit
346eb9d085
@ -74,7 +74,7 @@ class AccountJournal(models.Model):
|
|||||||
vals["sequence_id"] = self._create_sequence(vals).id
|
vals["sequence_id"] = self._create_sequence(vals).id
|
||||||
if (
|
if (
|
||||||
vals.get("type") in ("sale", "purchase")
|
vals.get("type") in ("sale", "purchase")
|
||||||
and vals.get("refund_sequence")
|
and vals.get("refund_sequence", True)
|
||||||
and not vals.get("refund_sequence_id")
|
and not vals.get("refund_sequence_id")
|
||||||
):
|
):
|
||||||
vals["refund_sequence_id"] = self._create_sequence(vals, refund=True).id
|
vals["refund_sequence_id"] = self._create_sequence(vals, refund=True).id
|
||||||
|
Loading…
Reference in New Issue
Block a user