[FIX] account: correctly compute debit/credit for partner including previous moves reported to new fiscal year
lp bug: https://launchpad.net/bugs/1219381 fixed bzr revid: mat@openerp.com-20131015121015-jdwkzv9tjicg2m1u
This commit is contained in:
parent
98d31e411f
commit
d36a90b39e
|
@ -116,7 +116,8 @@ class res_partner(osv.osv):
|
|||
LEFT JOIN account_account a ON (l.account_id=a.id)
|
||||
WHERE a.type IN ('receivable','payable')
|
||||
AND l.partner_id IN %s
|
||||
AND l.reconcile_id IS NULL
|
||||
AND (l.reconcile_id IS NULL OR
|
||||
reconcile_id in (SELECT id FROM account_move_reconcile WHERE opening_reconciliation is TRUE))
|
||||
AND """ + query + """
|
||||
GROUP BY l.partner_id, a.type
|
||||
""",
|
||||
|
|
Loading…
Reference in New Issue