diff options
| author | husen daudi <hda@hda> | 2009-08-13 17:25:49 +0530 |
|---|---|---|
| committer | husen daudi <hda@hda> | 2009-08-13 17:25:49 +0530 |
| commit | 59e5081a0d5e6a5e15cf956b99e038f51bf382da (patch) | |
| tree | 50b8646ce1cf4d0acffbb6943113f7e4bb5fb6ca /addons/document/document.py | |
| parent | 4a31f55d0a01ad08743e026ff01cbca204f948e4 (diff) | |
module:document improved resource domain eval with uid
bzr revid: hda@hda-20090813115549-xhwbxfq010u7jb9j
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index 1b0d6ad680f..cafbb074e28 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -174,7 +174,7 @@ class node_class(object): res = fobj.browse(self.cr, self.uid, file_ids, context=self.context) result +=map(lambda x: node_class(self.cr, self.uid, self.path+'/'+eval('x.'+fobj._rec_name), x, False, context=self.context, type='file', root=self.root), res) if self.type=='collection' and self.object.type=="ressource": - where = self.object.domain and eval(self.object.domain, {'active_id':self.root}) or [] + where = self.object.domain and eval(self.object.domain, {'active_id':self.root, 'uid':self.uid}) or [] pool = pooler.get_pool(self.cr.dbname) obj = pool.get(self.object.ressource_type_id.model) _dirname_field = obj._rec_name |
