From 4d2c765f75e343ff0572cb971fb18ee9c53170aa Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 23 Aug 2011 14:45:24 +0200 Subject: [PATCH] [FIX] osv: broken SQL query. bzr revid: vmt@openerp.com-20110823124524-p0e1jq49vgssgb1y --- openerp/osv/osv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/osv/osv.py b/openerp/osv/osv.py index 0831e6f1944..1c564cb83b5 100644 --- a/openerp/osv/osv.py +++ b/openerp/osv/osv.py @@ -277,7 +277,7 @@ class TransientModel(Model): # No access rules for transient models. if self._log_access and uid != openerp.SUPERUSER: cr.execute("SELECT distinct create_uid FROM " + self._table + " WHERE" - " id in ", (tuple(ids),)) + " id IN %s", (tuple(ids),)) uids = [x[0] for x in cr.fetchall()] if len(uids) != 1 or uids[0] != uid: raise orm.except_orm(_('AccessError'), '%s access is '