Skip to Content
Menú
This question has been flagged
1 Respondre
3709 Vistes

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
Descartar
Best Answer

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Avatar
Descartar
Autor

Thanks, man.

Related Posts Respostes Vistes Activitat
1
de des. 23
2338
2
d’ag. 23
2108
1
de jul. 23
2685
0
de maig 23
2492
1
de febr. 23
2384