Skip to Content
Menu
This question has been flagged
1 Reply
2964 Views

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

Avatar
Discard
Best Answer

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Avatar
Discard
Author

Thanks, man.

Related Posts Replies Views Activity
1
Dec 23
1736
2
Aug 23
1607
1
Jul 23
2257
0
May 23
1848
1
Feb 23
1959