[FIX] account_voucher: missing '%' in string interpolation
authorolt@tinyerp.com <>
Mon, 29 Mar 2010 14:46:11 +0000 (16:46 +0200)
committerolt@tinyerp.com <>
Mon, 29 Mar 2010 14:46:11 +0000 (16:46 +0200)
bzr revid: olt@tinyerp.com-20100329144611-jguk94nsoohywsxn

addons/account_voucher/account.py

index 4e01e27..7cdbfc6 100644 (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={}):