[FIX] ir_attachment: _filestore cache ignore uid

replace ormcache_context by ormcache: use the context in the cache key is useless
set skiparg=3 (default skiparg=2) so the uid is not used in the cache key: the filestore path is the same for all database users
This commit is contained in:
Denis Ledoux
2014-07-24 11:53:57 +02:00
parent 451d2de355
commit b4ef87f1ec
+1 -1
View File
@@ -69,7 +69,7 @@ class ir_attachment(osv.osv):
def _storage(self, cr, uid, context=None):
return self.pool['ir.config_parameter'].get_param(cr, SUPERUSER_ID, 'ir_attachment.location', 'file')
@tools.ormcache_context()
@tools.ormcache(skiparg=3)
def _filestore(self, cr, uid, context=None):
return tools.config.filestore(cr.dbname)