[FIX] account_reconcile_restrict_partner_mismatch: move should be posted to be reconciled

This commit is contained in:
Miquel Raïch
2022-06-08 13:47:30 +02:00
parent 1d800663c6
commit f89eeb5336

View File

@@ -53,12 +53,13 @@ class TestReconciliation(SavepointCase):
"journal_id": cls.bank_journal.id,
"line_ids": [(0, 0, debit_line_vals), (0, 0, credit_line_vals)],
}
return (
move = (
cls.env["account.move"]
.with_context(default_journal_id=cls.bank_journal.id)
.create(vals)
.id
)
move.post()
return move.id
@classmethod
def init_moves(cls):
@@ -95,7 +96,7 @@ class TestReconciliation(SavepointCase):
self.aml[0].partner_id = self.partner.id
with self.assertRaises(UserError):
self.aml.reconcile()
# reconciliation forbiden only for certain types of accounts
# reconciliation forbidden only for certain types of accounts
account = self.env["account.account"].create(
{
"code": "CAA1000",