[FIX] account: modified the constraint on account.move.reconcile in order to allow the reconciliation to be made on different partners if it doesn't concern a payable or receivable account

bzr revid: qdp-launchpad@openerp.com-20130423125731-dblhpx7zz4q9x464
This commit is contained in:
Quentin (OpenERP) 2013-04-23 14:57:31 +02:00
parent 6d9ae761cd
commit 7e46260474
1 changed files with 1 additions and 1 deletions

View File

@ -1680,7 +1680,7 @@ class account_move_reconcile(osv.osv):
elif reconcile.line_partial_ids:
first_partner = reconcile.line_partial_ids[0].partner_id.id
move_lines = reconcile.line_partial_ids
if any([line.partner_id.id != first_partner for line in move_lines]):
if any([(line.account_id.type in ('receivable', 'payable') and line.partner_id.id != first_partner) for line in move_lines]):
return False
return True