From 7551d6420b96fe60c7a3f17165278d10ab191fe0 Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Mon, 29 Mar 2010 16:46:11 +0200 Subject: [PATCH] [FIX] account_voucher: missing '%' in string interpolation bzr revid: olt@tinyerp.com-20100329144611-jguk94nsoohywsxn --- addons/account_voucher/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account.py b/addons/account_voucher/account.py index 4e01e27..7cdbfc6 100644 --- a/addons/account_voucher/account.py +++ b/addons/account_voucher/account.py @@ -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={}): -- 1.7.10.4