Skip to content

Commit

Permalink
[IMP] aditional depndency to trigger recompute properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Iryna Vyshnevska committed Jul 22, 2019
1 parent 0d3267f commit 7baa214
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion account_mass_reconcile/models/mass_reconcile.py
Expand Up @@ -116,7 +116,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:
Expand Down
Expand Up @@ -72,7 +72,6 @@ def test_mass_reconcile_transaction_ref_vs_ref(self):
})
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)

Expand Down Expand Up @@ -115,6 +114,5 @@ def test_mass_reconcile_transaction_ref(self):
})
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)

0 comments on commit 7baa214

Please sign in to comment.