Comment 45 for bug 1073087

Revision history for this message
Dawn Richardson (r-dawn) wrote :

Patch in #42 did not help me either.

To replicate my most basic issue: (I'm using version 7.0-20130122-001415)
- Run server in debug mode and create a new DB
- Go to Users > Users > Adminstrator and update the access rights to the following: Multi-Companies=True. Technical Features = True.
- Refresh and then go to Companies > Companies and create a new company, 'Company B'
- Go to Users > Users and create a new user, 'User B' with the following access rights: company='Your Company'. Allowed Companies='Your Company', 'Company B'. Adminstration='Settings'. Multi Companies= True.
- Change User B 's password
- Sign in as User B.
- Go to Preferences in top right corner
- Change Company from 'Your Company' to 'Company B'.
- Click Save and watch the log. The following error is thrown:
except_orm: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Partner, Operation: read)')

Interestingly this error only shows up on the log and not the UI. Continuing from this point causes many other problems similar to those mentioned above. Note also the user's partner's company is not updated to match the user (I checked by adding a field to users to see the partner_id.company_id related to a particular user). Whether this causes the problem above or is a result of it I am not sure. Any insights would be appreciated?