How to Get the ID field value in Odoo [duplicate]

泄露秘密 提交于 2019-12-02 13:00:56
Bazzinga...

Please read the Official Doc for v8.0 , it will give you clear idea.

For note, if your are using New API then you just directly create model_object and fetch using model_obj.id

As on your example

HrEmployee = self.env['hr.employee']
employee_id = HrEmployee.id
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!