[FIX] attachments: filestore use dbname instead of dbuuid
bzr revid: chs@openerp.com-20140117161424-i1ggvzawkjrabbwc
This commit is contained in:
parent
a45b2c6b90
commit
14815d669f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue