From 19da7b708c43b8f00767878b04251a5c094ea761 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Wed, 1 Oct 2014 16:05:53 +0200 Subject: [PATCH] [FIX] account: fixed broken constraint (due to the passage to the new API) to ensure the same partner is present on journal items we try to reconcile partially. Fixes #2527 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 0ef5e1f05eb..df9a52dd0d8 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1646,7 +1646,7 @@ class account_move_reconcile(osv.osv): return True _constraints = [ - (_check_same_partner, 'You can only reconcile journal items with the same partner.', ['line_id']), + (_check_same_partner, 'You can only reconcile journal items with the same partner.', ['line_id', 'line_partial_ids']), ] def reconcile_partial_check(self, cr, uid, ids, type='auto', context=None):