Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
因为做一个模块的时候需要解析上传文件,找了一圈,终于在openerp.tools里找到了一些东西。首先引入openerp.tools.config
import openerp.tools.config
然后调用config['root_path'],即可获得
config['root_path']
很好, 谢谢