← Back to team overview

openerp-india team mailing list archive

[Bug 1028568] Re: OpenERP 6.1 user cannot see parent when given rights to do so

 

Hello Kenneth,

This is not a bug but its by design admin has super powers :).
Admin must not be affected by any access right or ir.rule because he/she must be able to correct them in case there is a configuration error.

Here for your scenario, you have assigned the child company for the
admin user that doesn't affect because if uid==1 then it will allow to
seen the all record means all company.

And you copied the admin user which will assigned the all rights of
admin user but it's doesn't have uid=1, So it will working as a normal
user not like a super user that's why you have seen only child company

This is not a bug rather than a behaviour because we have allow to do
changes for admin user in case of configuration mistake other wise it
may creates a problem.

Let's take a one example same as yours, If you have logged with admin
and you can see only child company as well as copied you also can seen
child company. Now I want to change the admin user's company again "Main
company (parent company)" then it's not possible. So finally admin user
can't behave like a normal user.

That's why this is not a bug and I am closing this issue.

Thanks for understanding!

** Changed in: openobject-server
       Status: New => Invalid

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1028568

Title:
  OpenERP 6.1 user cannot see parent when given rights to do so

Status in OpenERP Server:
  Invalid

Bug description:
  Tested on clean install of nightly build: openerp-6.1-20120722-233333
  1) Create new openerp database instance
  2) go to user configuration and give the admin account "multi-company" rights
  3) Create a new company i.e. "Child" and set parent company to the default installed company
  4) go to the user configuration and give the "admin" access to the child company and set the default filter company to the "child" company. 
  5) Duplicate the admin user to a test user with the exact same rights as the admin user
  6) login with the new user, go to Settings -->users --> <new user>

  Notice that the parent company is NOT available, and cannot be enabled using the new test user account. 
  Notice that by changing the main admin account to default to child, which still is listed with rights for BOTH companies. 
  Also notice that simply changing the default filter option for the child using the admin account to the parent company and then performing a login again using the test user will allow access to all companies. 

  Expected behavior:
  - both admin accounts should behave the same way given the exact same privileges
  - given that a user is added with rights to partent company, the parent company should be available

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1028568/+subscriptions


References