Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3431 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can use _xmlid_lookup function instead of xmlid_to_object function.


Thanks & Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks, man.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 23
2043
2
thg 8 23
1852
1
thg 7 23
2481
0
thg 5 23
2259
1
thg 2 23
2176