[FIX] attachments: filestore use dbname instead of dbuuid

bzr revid: chs@openerp.com-20140117161424-i1ggvzawkjrabbwc
This commit is contained in:
Christophe Simonis 2014-01-17 17:14:24 +01:00
parent a45b2c6b90
commit 14815d669f
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ class ir_attachment(osv.osv):
@tools.ormcache()
def _filestore(self, cr, uid, context=None):
dbuuid = self.pool['ir.config_parameter'].get_param(cr, SUPERUSER_ID, 'database.uuid')
return os.path.join(tools.config['data_dir'], 'filestore', dbuuid)
return os.path.join(tools.config['data_dir'], 'filestore', cr.dbname)
# 'data' field implementation
def _full_path(self, cr, uid, location, path):