[FIX] account_voucher: missing '%' in string interpolation

bzr revid: olt@tinyerp.com-20100329144611-jguk94nsoohywsxn
This commit is contained in:
olt@tinyerp.com 2010-03-29 16:46:11 +02:00
parent 16f184db93
commit 7551d6420b
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class account_account(osv.osv):
def compute_total(self, cr, uid, ids, yr_st_date, yr_end_date, st_date, end_date, field_names, context={}):
if not (st_date >= yr_st_date and end_date <= yr_end_date):
return {}
query = "l.date >= '%s' AND l.date <= '%s'" (st_date, end_date)
query = "l.date >= '%s' AND l.date <= '%s'" % (st_date, end_date)
return self.__compute(cr, uid, ids, field_names, context=context, query=query)
def create(self, cr, uid, vals, context={}):