跳至内容
菜单
此问题已终结
1 回复
3063 查看

I want to create an action server. But I've seen that 'xmlid_to_object' function is removed from 'ir.model.data' model in odoo 15. 


the code is below.


IrModelData = self.env['ir.model.data']
actionObject = IrModelData.xmlid_to_object('hr_recruitment_action_hr_job')


'hr_recruitment_action_hr_job' is my action server('ir.actions.server')  id

形象
丢弃
最佳答案

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

形象
丢弃
编写者

Thanks, man.

相关帖文 回复 查看 活动
1
12月 23
1803
2
8月 23
1680
1
7月 23
2329
0
5月 23
1955
1
2月 23
2047