mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] aditional depndency to trigger recompute properly
This commit is contained in:
@@ -117,7 +117,7 @@ class AccountMassReconcile(models.Model):
|
||||
_description = 'account mass reconcile'
|
||||
|
||||
@api.multi
|
||||
@api.depends('account')
|
||||
@api.depends('account', 'history_ids')
|
||||
def _get_total_unrec(self):
|
||||
obj_move_line = self.env['account.move.line']
|
||||
for rec in self:
|
||||
|
||||
@@ -72,7 +72,6 @@ class TestAccountReconcileTransactionRef(SavepointCase):
|
||||
})
|
||||
count = reconcile.unreconciled_count
|
||||
reconcile.run_reconcile()
|
||||
reconcile._get_total_unrec()
|
||||
self.assertEqual(self.cust_invoice.state, 'paid')
|
||||
self.assertEqual(reconcile.unreconciled_count, count - 2)
|
||||
|
||||
@@ -115,6 +114,5 @@ class TestAccountReconcileTransactionRef(SavepointCase):
|
||||
})
|
||||
count = reconcile.unreconciled_count
|
||||
reconcile.run_reconcile()
|
||||
reconcile._get_total_unrec()
|
||||
self.assertEqual(self.cust_invoice.state, 'paid')
|
||||
self.assertEqual(reconcile.unreconciled_count, count - 2)
|
||||
|
||||
Reference in New Issue
Block a user