Skip to Content
मेन्यू
This question has been flagged
1 Reply
4212 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
दिस॰ 23
2760
2
अग॰ 23
2404
1
जुल॰ 23
3017
0
मई 23
2948
1
फ़र॰ 23
2847