Skip to Content
Menu
This question has been flagged
1 Odpoveď
3905 Zobrazenia

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
Zrušiť
Best Answer

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Avatar
Zrušiť
Autor

Thanks, man.

Related Posts Replies Zobrazenia Aktivita
1
dec 23
2517
2
aug 23
2232
1
júl 23
2818
0
máj 23
2639
1
feb 23
2488