I want to restrict the user to the website edition if it does not belong to your company.
But if I enter as UserB (which belongs to the COB company), I can edit the COA website.
To configure it I followed these steps:
https://www.odoo.com/documentation/user/12.0/website/publish/multi_website.html
It is also configured: settings >> active users >> select user >> under "allowed companies" set the company the user has rights to
My configuration is this:
Company A
https://i.ibb.co/HXtbsCs/CoA.png
Company B
https://i.ibb.co/bFTZ7dc/CoB.png
User A, with your only company allowed (Editor and designer mode)
https://i.ibb.co/WBQNgQD/UserA.png
User B, with your only company allowed (Editor and designer mode)
https://i.ibb.co/GHkj3Zh/UserB.png
Users Company A (Only UserA and administrator belong)
https://i.ibb.co/SxFp0Tq/Usuarios-Co-A.png
Users Company B (Only UserB and administrator belong)
https://i.ibb.co/tP1bCZY/Usuarios-Co-B.png
Websites (Default configuration)
https://i.ibb.co/rw9ctv4/Websites.png
Website A
https://i.ibb.co/Vjhnt4m/WebA.png
Website B
https://i.ibb.co/VpYNwCJ/WebB.png
Website A config (WebB in company CoB)
https://i.ibb.co/8jQ54cx/Web-A-config.png
Website B config (WebB in company CoB)
https://i.ibb.co/HChCtzD/Web-B-config.png
I also have configured as:
Multiwebsite and multicompany
https://i.ibb.co/fNSmq1q/multiwebsite.png
https://i.ibb.co/Z6pYZYt/multicompany.png
When I enter as another user (for example UserA) I can edit all the websites (for example WebB)
https://i.ibb.co/4ggrRqK/error1.png
And here editing a website to which my company does not belong
https://i.ibb.co/6bfvL29/error2.png
<b>What is expected is that you can only edit the websites that belong to our company</b>