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

am starting on odoo 12, i created a new module named 'mmobilier' and inside some models(bien,appreciation,type_de_bien) and i added this configuration on my security 

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_immobilier.bien,immobilier_bien,immobilier.model_immobilier_bien,,1,1,1,0
access_immobilier.appreciation,immobilier_appreciation,immobilier.model_immobilier_appreciation,,1,1,1,0
access_immobilier.type_de_bien,immobilier_type_de_bien,immobilier.model_immobilier_type_de_bien,,1,1,1,0
the model bien is accepted but the two others no

Ảnh đại diện
Huỷ bỏ

Groups and Access Rights in Odoo: https://goo.gl/4jAhtH

Câu trả lời hay nhất

Try this

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_immobilier_bien,immobilier_bien,model_immobilier_bien,,1,1,1,0
access_immobilier_appreciation,immobilier_appreciation,model_immobilier_appreciation,,1,1,1,0
access_immobilier_type_de_bien,immobilier_type_de_bien,model_immobilier_type_de_bien,,1,1,1,0

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

Hi,

In the access rights you have added you miss to specify the model name after id and name, 

See: How To Set Access Rights For Models in Odoo

Thanks

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

problem solved am not sure how but the problem was caused by my date field in "bien" model 

date=field.Char(Date.now())

once i ommited  Date.now() the problem was gone 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 24
7
1
thg 7 19
3943
0
thg 9 17
6871
2
thg 8 23
2825
0
thg 1 24
1761