[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:
parent
6d9ae761cd
commit
7e46260474
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue