Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3683 Zobrazení

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šit
Nejlepší odpověď

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Avatar
Zrušit
Autor

Thanks, man.

Related Posts Odpovědi Zobrazení Aktivita
1
pro 23
2325
2
srp 23
2085
1
čvc 23
2663
0
kvě 23
2481
1
úno 23
2346