bzr revid: qdp-launchpad@openerp.com-20110506130637-ddaf26d9uvz3p1qp
This commit is contained in:
Quentin (OpenERP) 2011-05-06 15:06:37 +02:00
commit 5eab882cea
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class partner_vat_13(osv.osv_memory):
break
if not go_ahead:
continue
cursor.execute('select b.code, sum(credit)-sum(debit) from account_move_line l left join account_account a on (l.account_id=a.id) left join account_account_type b on (a.user_type=b.id) where b.code IN %s and l.partner_id=%s and l.period_id IN %s group by b.code',(('income','produit','tax'),obj_partner.id,tuple(period),))
cursor.execute('select b.code, sum(credit)-sum(debit) from account_move_line l left join account_account a on (l.account_id=a.id) left join account_account_type b on (a.user_type=b.id) where b.code IN %s and l.partner_id=%s and l.period_id IN %s group by b.code',(('income','produit','tax_out'),obj_partner.id,tuple(period),))
line_info = cursor.fetchall()
if not line_info:
continue