[FIX] fix _check_line_changed partner check
parent
20f60cfe62
commit
0e4f79c908
|
@ -322,7 +322,11 @@ class AccountBankStatementLine(models.Model):
|
|||
)
|
||||
or self.manual_account_id.id != line["account_id"][0]
|
||||
or self.manual_name != line["name"]
|
||||
or (self.manual_partner_id and self.manual_partner_id.display_name or False)
|
||||
or (
|
||||
self.manual_partner_id
|
||||
and [self.manual_partner_id.id, self.manual_partner_id.display_name]
|
||||
or [False, False]
|
||||
)
|
||||
!= line.get("partner_id")
|
||||
or self.analytic_distribution != line.get("analytic_distribution", False)
|
||||
)
|
||||
|
|
|
@ -1141,7 +1141,7 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
|
|||
259200,
|
||||
)
|
||||
f.add_account_move_line_id = inv1.line_ids.filtered(
|
||||
lambda l: l.account_id.account_type == "asset_receivable"
|
||||
lambda line: line.account_id.account_type == "asset_receivable"
|
||||
)
|
||||
self.assertTrue(f.can_reconcile)
|
||||
self.assertEqual(len(bank_stmt_line.reconcile_data_info["data"]), 3)
|
||||
|
@ -1317,7 +1317,7 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
|
|||
# simulate click on statement line, check amount does not recompute
|
||||
self.assertEqual(f.manual_amount, 83.33)
|
||||
f.add_account_move_line_id = inv1.line_ids.filtered(
|
||||
lambda l: l.account_id.account_type == "asset_receivable"
|
||||
lambda line: line.account_id.account_type == "asset_receivable"
|
||||
)
|
||||
self.assertEqual(3, len(f.reconcile_data_info["data"]))
|
||||
self.assertTrue(f.can_reconcile)
|
||||
|
|
Loading…
Reference in New Issue