[FIX] account: recompute invoice residual amount when one of its move lines is totally reconciled

Fixes #3395
This commit is contained in:
Arthur Maniet 2014-11-03 11:32:53 +01:00
parent 9bc156a32c
commit 4a8b8df813
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ class account_invoice(models.Model):
'state', 'currency_id', 'invoice_line.price_subtotal',
'move_id.line_id.account_id.type',
'move_id.line_id.amount_residual',
# Fixes the fact that move_id.line_id.amount_residual, being not stored and old API, doesn't trigger recomputation
'move_id.line_id.reconcile_id',
'move_id.line_id.amount_residual_currency',
'move_id.line_id.currency_id',
'move_id.line_id.reconcile_partial_id.line_partial_ids.invoice.type',