Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3728 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Imagine profil
Abandonează
Autor

Thanks, man.

Related Posts Răspunsuri Vizualizări Activitate
1
dec. 23
2344
2
aug. 23
2115
1
iul. 23
2694
0
mai 23
2497
1
feb. 23
2388