mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
account_reconcile_model_strict_match_amount: Fix tests for v14.0
This commit is contained in:
@@ -39,8 +39,7 @@ class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules
|
||||
cls.bank_line_s_3 = cls.env["account.bank.statement.line"].create(
|
||||
{
|
||||
"statement_id": cls.bank_st_s.id,
|
||||
"name": "ABC001XYZ",
|
||||
"payment_ref": "REF0003",
|
||||
"payment_ref": "ABC001XYZ",
|
||||
"partner_id": cls.partner_s_3.id,
|
||||
"amount": 135,
|
||||
"sequence": 1,
|
||||
@@ -49,8 +48,7 @@ class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules
|
||||
cls.bank_line_s_4 = cls.env["account.bank.statement.line"].create(
|
||||
{
|
||||
"statement_id": cls.bank_st_s.id,
|
||||
"name": "ABC002XYZ",
|
||||
"payment_ref": "REF0004",
|
||||
"payment_ref": "ABC002XYZ",
|
||||
"partner_id": cls.partner_s_4.id,
|
||||
"amount": 270,
|
||||
"sequence": 2,
|
||||
@@ -59,8 +57,7 @@ class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules
|
||||
cls.bank_line_s_5 = cls.env["account.bank.statement.line"].create(
|
||||
{
|
||||
"statement_id": cls.bank_st_s.id,
|
||||
"name": "ABC003XYZ",
|
||||
"payment_ref": "REF0005",
|
||||
"payment_ref": "ABC003XYZ",
|
||||
"partner_id": cls.partner_s_5.id,
|
||||
"amount": 405,
|
||||
"sequence": 3,
|
||||
@@ -69,13 +66,14 @@ class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules
|
||||
cls.bank_line_s_6 = cls.env["account.bank.statement.line"].create(
|
||||
{
|
||||
"statement_id": cls.bank_st_s.id,
|
||||
"name": "ABC004XYZ",
|
||||
"payment_ref": "REF0006",
|
||||
"payment_ref": "ABC004XYZ",
|
||||
"partner_id": cls.partner_s_6.id,
|
||||
"amount": 540,
|
||||
"sequence": 4,
|
||||
}
|
||||
)
|
||||
cls.bank_st_s.balance_end_real = cls.bank_st_s.balance_end
|
||||
cls.bank_st_s.button_post()
|
||||
|
||||
def test_auto_reconcile_strict_match_100(self):
|
||||
my_rule = self.env["account.reconcile.model"].create(
|
||||
@@ -120,21 +118,25 @@ class TestAccountReconcileModelStrictMatchAmount(TestReconciliationMatchingRules
|
||||
self.bank_line_s_3.id: {
|
||||
"aml_ids": [self.invoice_line_s_5.id],
|
||||
"model": my_rule,
|
||||
"status": "reconciled",
|
||||
"partner": self.partner_s_3,
|
||||
},
|
||||
self.bank_line_s_4.id: {
|
||||
"aml_ids": [self.invoice_line_s_6.id],
|
||||
"model": my_rule,
|
||||
"status": "reconciled",
|
||||
"partner": self.partner_s_4,
|
||||
},
|
||||
self.bank_line_s_5.id: {
|
||||
"aml_ids": [self.invoice_line_s_7.id],
|
||||
"model": my_rule,
|
||||
"status": "reconciled",
|
||||
"partner": self.partner_s_5,
|
||||
},
|
||||
self.bank_line_s_6.id: {
|
||||
"aml_ids": [self.invoice_line_s_8.id],
|
||||
"model": my_rule,
|
||||
"status": "reconciled",
|
||||
"partner": self.partner_s_6,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user