OCA / multi-company

GNU Affero General Public License v3.0
98 stars 280 forks source link

Error with multy-company rules #586

Closed PabloGonzalezRivero closed 5 months ago

PabloGonzalezRivero commented 5 months ago

module: partner_multi_company version: 15.0

Due to a confusion, I modified one of the permissions of the multicompany module, and now all users can see all contacts, even those from other companies. I've tried uninstalling the multicompany modules entirely and reinstalling them to restore the permissions, but it hasn't worked. Nothing I've tried has worked. What could I do?

pedrobaeza commented 5 months ago

Without knowing what you "modify", nothing can be done.

PabloGonzalezRivero commented 5 months ago

You won't believe it, while searching for the error (which I couldn't remember because it was a long time ago and I couldn't find it), I discovered what record rule had been modified, and I've restored it to its original state. The issue was caused by altering the 'res.partner company' rule. I've set it to be global, and now it works correctly. I've been dealing with this problem for over 5 months and invested a lot of time in this error, only to finally find the solution this way. I'm sorry for having wasted your time.

pedrobaeza commented 5 months ago

OK, the important thing is that you have solved it. Next time, you can use https://runbot.odoo.com/ to check the original state of things to compare with your installation.