Help

0

Restrict a user to only be able to modify its company's website

Avatar
Pierre Peckel

Hi !

I would like to create a second website, a second company and a second user and i would like that the second user has only access to the second company data. I've tested it and gave the second user access to the second company that manages the second website. It works for every app but for some reason, the second user is also able modify the 1st website which is very annoying. Apparently there is a way to solve this that but i can't figure it out. Can anyone help me ? 


Thank you very much 

Avatar
Abaikan
1 Jawaban
0
Avatar
Nikul Chaudhary
Best Answer

Hello Pierre Peckel

Please check https://www.odoo.com/documentation/user/13.0/general/odoo_basics/add_user.html

And I would suggest creating/editing a group, add some users and then go to the "Record Rules" tab and add a line such as the following:

  • Name: Disable homepage editing
  • Object: Page (website.page)
  • Domain: [('id','not in',[1])]
  • Apply for read: Yes
  • Apply for write: No
  • Apply for create: No
  • Apply for delete: No

 https://stackoverflow.com/questions/55675244/restrict-editing-access-of-webpages-in-odoo


Avatar
Abaikan