[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

This commit is contained in:
qdp-odoo 2014-10-01 16:05:53 +02:00
parent 53ff84493f
commit 19da7b708c
1 changed files with 1 additions and 1 deletions

View 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):