2017-09-27 162 views

回答

1

在文件__openerp__.py你必须指定模块或者需要由,分离模块的依赖:

'depends': ['hr', 'other_module'] 

当你想使用这些模块的模型在你的类,你可以使用搜索和浏览方法。例如:

self.pool.get('hr.employee').search(cr, uid, [('id', '=', your_id)], context) 

我希望这对您有所帮助!

相关问题