OCA / server-backend

GNU Affero General Public License v3.0
104 stars 274 forks source link

base_user_role_company doesn't work with multiple browser tabs #279

Closed bguillot closed 3 weeks ago

bguillot commented 8 months ago

Hello,

On module base_urser_role_company

If several tabs are open on different companies, the role is not correctly assigned.

Steps to reproduce the behavior:

  1. Create a database with Company A and Company B,
  2. Create 2 roles : Role A and Role B
  3. Assign a user Role A to company A and Role B to company B
  4. open a first tab, select Company A the user has the Role A
  5. open a second tab, select company B
  6. Go back to first tab, the user has role B

Having looked at how the base_user_role module works, I can't really see a solution to fix this other than disabling multi-tabbing. Perhaps we should put in the known issues that this problem exists unless someone has a solution!

Thanks for your comments on this issue.

github-actions[bot] commented 2 months ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.