2
0

[FIX] Add journal_id when creating account move reversal on tests

This commit is contained in:
Eduardo De Miguel 2022-03-31 16:39:29 +02:00 committed by Zina Rasoamanana
parent 4981ff03d6
commit 6a97dbded0

View File

@ -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()
) )