kernel: don't modify the args of the call

_where_calc can not modify the args given in the call, need to copy it first

bzr revid: ced-754405cd95ea03504506c88132fe228f13216b11
This commit is contained in:
ced
2007-07-26 08:31:07 +00:00
parent bc574c1f4a
commit f17c417a7a
+1 -1
View File
@@ -1645,7 +1645,7 @@ class orm(object):
cr.execute('select count(%s.id) from ' % self._table + ','.join(tables) +qu1, qu2)
res = cr.fetchall()
return res[0][0]
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None):
if not context:
context={}