跳至內容
選單
此問題已被標幟
1 回覆
3990 瀏覽次數

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
2579
2
8月 23
2271
1
7月 23
2870
0
5月 23
2677
1
2月 23
2551