diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 4cf8a01a95b..6f952b94a35 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1215,8 +1215,10 @@ class AccountMove(models.Model): return 'paid' @api.depends( + 'line_ids.matched_debit_ids.debit_move_id.move_id.payment_id.is_matched', 'line_ids.matched_debit_ids.debit_move_id.move_id.line_ids.amount_residual', 'line_ids.matched_debit_ids.debit_move_id.move_id.line_ids.amount_residual_currency', + 'line_ids.matched_credit_ids.credit_move_id.move_id.payment_id.is_matched', 'line_ids.matched_credit_ids.credit_move_id.move_id.line_ids.amount_residual', 'line_ids.matched_credit_ids.credit_move_id.move_id.line_ids.amount_residual_currency', 'line_ids.debit', diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 4adabbc1145..992b0d322ee 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -272,7 +272,7 @@ class AccountPayment(models.Model): # COMPUTE METHODS # ------------------------------------------------------------------------- - @api.depends('move_id.line_ids.amount_residual', 'move_id.line_ids.amount_residual_currency') + @api.depends('move_id.line_ids.amount_residual', 'move_id.line_ids.amount_residual_currency', 'move_id.line_ids.account_id') def _compute_reconciliation_status(self): ''' Compute the field indicating if the payments are already reconciled with something. This field is used for display purpose (e.g. display the 'reconcile' button redirecting to the reconciliation