Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3238 Vistas

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
Mejor respuesta

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Avatar
Descartar
Autor

Thanks, man.

Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 23
1940
2
ago 23
1792
1
jul 23
2431
0
may 23
2098
1
feb 23
2124