[FIX] account: fixed broken constraint (due to the passage to the new API) to ensure...
authorqdp-odoo <qdp@openerp.com>
Wed, 1 Oct 2014 14:05:53 +0000 (16:05 +0200)
committerqdp-odoo <qdp@openerp.com>
Wed, 1 Oct 2014 14:05:53 +0000 (16:05 +0200)
addons/account/account.py

index 0ef5e1f..df9a52d 100644 (file)
@@ -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):