[FIX] base: make ir_attachment._filestore callable with kwargs
authorChristophe Simonis <chs@odoo.com>
Fri, 11 Jul 2014 12:58:32 +0000 (14:58 +0200)
committerChristophe Simonis <chs@odoo.com>
Fri, 11 Jul 2014 12:58:32 +0000 (14:58 +0200)
openerp/addons/base/ir/ir_attachment.py

index 8478682..9cfd504 100644 (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()
+    @tools.ormcache_context()
     def _filestore(self, cr, uid, context=None):
         return tools.config.filestore(cr.dbname)