diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index f2a8acdb757..312b6c93f5e 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -759,6 +759,10 @@ class AccountMoveLine(models.Model): #or if all lines share the same currency field = 'amount_residual_currency' rounding = self[0].currency_id.rounding + if self._context.get('skip_full_reconcile_check') == 'amount_currency_excluded': + field = 'amount_residual' + elif self._context.get('skip_full_reconcile_check') == 'amount_currency_only': + field = 'amount_residual_currency' #target the pair of move in self that are the oldest sorted_moves = sorted(self, key=lambda a: a.date) debit = credit = False