diff options
| author | greg-apieum <> | 2010-02-24 10:32:10 +0100 |
|---|---|---|
| committer | greg-apieum <> | 2010-02-24 10:32:10 +0100 |
| commit | 0adc5881463d83f956faabec28db9a911bb20fca (patch) | |
| tree | 71cf12ef72400259cd523a4438c18c8ce1ea0f3a /addons/document/document.py | |
| parent | e7a22755e5d44a4de0867e44e19e269af5af56f9 (diff) | |
ADD to config 'document_path' to set ftp root path
bzr revid: greg-apieum-20100224093210-mpitlp5ckckxjvm5
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index 6544e94d08d..ed2d823602a 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -36,12 +36,13 @@ import tools from tools.translate import _ import nodes +DMS_ROOT_PATH = tools.config.get('document_path', os.path.join(tools.config['root_path'], 'filestore')) class document_file(osv.osv): _inherit = 'ir.attachment' _rec_name = 'datas_fname' def _get_filestore(self, cr): - return os.path.join(tools.config['root_path'], 'filestore', cr.dbname) + return os.path.join(DMS_ROOT_PATH, cr.dbname) def _data_get(self, cr, uid, ids, name, arg, context): fbrl = self.browse(cr, uid, ids, context=context) |
