[FIX] account: recompute invoice residual amount when one of its move lines is totall...
authorArthur Maniet <me@whisno.be>
Mon, 3 Nov 2014 10:32:53 +0000 (11:32 +0100)
committerArthur Maniet <me@whisno.be>
Tue, 4 Nov 2014 13:45:09 +0000 (14:45 +0100)
Fixes #3395

addons/account/account_invoice.py

index 31015eb..a50d4c1 100644 (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',