Brand new Odoo 9 installation (in Ubuntu 14.04). Success
Installed all 31 Apps. Success
Defined email settings. Success
Enabled Google login in Settings. Success
Enabled multiple companies in Settings. Success
Sent (email) invitation to first new user using admin account. Success
Logged in using the new user account (that's supposed to be a clone of admin account.) Success
Checked the new user account security settings (they are the same as admin's.) Success
Here comes the problem. The new user (that is supposed to have exact same security settings that admin has) can't send an invitation.
I have triple checked all the Security settings using Developer mode and they are exactly the same.
What am I missing?
Did the user cloning process fail?
Here is the exact error message...
Odoo Warning - Access Error
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: mail.message, Operation: read)
There is many times used in Odoo code check of SUPERUSER_ID (which is 1) as a security measure. it means only one user can be a SUPERUSER, which is the user with the same ID as SUPERUSER_ID constant (i.e. one), as a result of such check, user with database ID different then 1, will be limited in some way or another, compared to superuser (user with database id=1). AND as database ID is unique for every record, you can't have more then one superuser, but you can have several admins (slightly limited then superuser, as an user copied by you, that has different ID then 1). However, I've to include disclaimer, I never checked if the above statement about unique superuser is true or not, it's just a guess that comes from frequently used SUPERUSER_ID check in the code, but most probably it's the case.
Other hand, you can overcome the above error, by using sudo() function (scroll up a bit) in the code, thus enable other users to make same operation with superuser privileges(in better case, you should replace security measure with other security rules, instead of simply avoiding it with sudo function). so you can overcome the above error with a small customization of python code for failing operation.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/15/15, 7:29 AM|
|Seen: 942 times|
|Last updated: 10/16/15, 6:52 AM|