kernel: fix context in search / where_calc
bzr revid: ced-f229f1e7b377fdc7eee72c308a66cd86be9b3766
This commit is contained in:
+1
-1
@@ -1648,7 +1648,7 @@ class orm(object):
|
||||
if not context:
|
||||
context={}
|
||||
# compute the where, order by, limit and offset clauses
|
||||
(qu1,qu2,tables) = self._where_calc(cr, user, args, context)
|
||||
(qu1,qu2,tables) = self._where_calc(cr, user, args, context=context)
|
||||
|
||||
if len(qu1):
|
||||
qu1 = ' where '+string.join(qu1,' and ')
|
||||
|
||||
Reference in New Issue
Block a user