mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] Add journal_id when creating account move reversal on tests
This commit is contained in:
committed by
Zina Rasoamanana
parent
4981ff03d6
commit
6a97dbded0
@@ -96,7 +96,12 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase):
|
||||
active_ids=self.invoice_1.ids,
|
||||
)
|
||||
.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()
|
||||
)
|
||||
@@ -113,7 +118,12 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase):
|
||||
active_ids=self.invoice_1.ids,
|
||||
)
|
||||
.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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user