[FIX] Add journal_id when creating account move reversal on tests
This commit is contained in:
parent
4981ff03d6
commit
6a97dbded0
@ -96,7 +96,12 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase):
|
|||||||
active_ids=self.invoice_1.ids,
|
active_ids=self.invoice_1.ids,
|
||||||
)
|
)
|
||||||
.create(
|
.create(
|
||||||
{"date": self.today, "reason": "no reason", "refund_method": "refund"}
|
{
|
||||||
|
"date": self.today,
|
||||||
|
"reason": "no reason",
|
||||||
|
"refund_method": "refund",
|
||||||
|
"journal_id": self.invoice_1.journal_id.id,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
.reverse_moves()
|
.reverse_moves()
|
||||||
)
|
)
|
||||||
@ -113,7 +118,12 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase):
|
|||||||
active_ids=self.invoice_1.ids,
|
active_ids=self.invoice_1.ids,
|
||||||
)
|
)
|
||||||
.create(
|
.create(
|
||||||
{"date": self.today, "reason": "no reason", "refund_method": "refund"}
|
{
|
||||||
|
"date": self.today,
|
||||||
|
"reason": "no reason",
|
||||||
|
"refund_method": "refund",
|
||||||
|
"journal_id": self.invoice_1.journal_id.id,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
.reverse_moves()
|
.reverse_moves()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user