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

hai, everyone🧤


I want to ask, I have created a custom module related to payroll. Now I want to try to retrieve data from the custom module with the xmlrpc.client library but the module cannot be accessed. What access rights and record rules do I need to add so that I can access the data from outside Odoo. The picture is attached.


I wanted to try to call the data but was not allowed access.


xmlrpc.client.Fault:

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

Is it really like this?


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

Hi,

Create a CSV file to set the access right as given below,

id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink

access_your_model_name,access.your.model.name,model_your_model_name,base.group_user,1,1,1,1


Hope it helps

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

Is it really like this?
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_payroll-bsd_payroll-bsd,payroll-bsd.payroll-bsd,model_payroll-bsd_payroll-bsd,base.group_user,1,1,1,1
access_payroll_insentif_thr,payroll.insentif_thr,model_payroll_insentif_thr,payroll_insentif_thr.group_user,1,1,1,1
access_payroll_transport,payroll.transport,model_payroll_transport,payroll_transport.group_payroll_transport_user,1,1,1,1

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3012
2
thg 3 24
1981
4
thg 1 23
17208
3
thg 3 15
23818
2
thg 3 15
5685