コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3878 ビュー

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

アバター
破棄
最善の回答

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

アバター
破棄
著作者

Thanks, man.

関連投稿 返信 ビュー 活動
1
12月 23
2472
2
8月 23
2225
1
7月 23
2802
0
5月 23
2620
1
2月 23
2474