[FIX]: change previous query

bzr revid: mga@tinyerp.com-20100709062801-glxmafv6flqdfxuo
This commit is contained in:
Mantavya Gajjar 2010-07-09 11:58:01 +05:30
parent 2f27b9ebde
commit bcb30ec9c0
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class account_invoice_refund(osv.osv_memory):
and name = 'company_id'")
result_query = cr.fetchone()
if result_query:
cr.execute("""select p.id, p.name from account_fiscalyear y, account_period p where y.id=p.fiscalyear_id \
cr.execute("""select p.id from account_fiscalyear y, account_period p where y.id=p.fiscalyear_id \
and date(%s) between p.date_start AND p.date_stop and y.company_id = %s limit 1""", (date, company.id,))
else:
cr.execute("""SELECT id