Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2219 Widoki

I have added this 2 access rights in my ir.model.access.csv but they are not working, a user that have group_mining_user user group still can modification products, where is the problem? or have can I achieve this?

my ir.model.access.csv is loaded correctly as other access rights are working 


access_product_product_mining_user,product.product.mining.user,product.model_product_product,group_mining_user,1,0,0,0
access_product_template_mining_user,product.product.mining.user,product.model_product_template,group_mining_user,1,0,0,0
Awatar
Odrzuć

Did you added these group_mining_user to your user?

Autor

yes i did

Take into account that rights for products is granted for many users groups (depending on the set of installed apps): sales persons, warehouse users, purchase users, etc. Your rule ADDS the right for the mining users, but does NOT FORBID it for other groups. In order to achieve you goal you should overwrite each access rule in your database which grants rights for products.

Also there is a ready solution for that purpose - https://apps.odoo.com/apps/modules/12.0/product_access_restriction/

Autor Najlepsza odpowiedź

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 25
1417
0
sie 25
1402
2
kwi 23
25668
0
lut 22
2747
1
sty 22
1840