← Back to team overview

openerp-india team mailing list archive

[Bug 1090049] Re: Multi-comapnies incorrect access right in view of partner list

 

Hello,

As far as I can tell this is not a bug, but the expected behavior with
the default OpenERP configuration, especially when the two companies are
unrelated (not a parent of each other)

Here is how multi-company works in OpenERP:
- a user can only see documents that belong to the company that is currently set as their "main company" in their user preferences or to a child company, plus documents that do not belong to any company (it actually depends on the security rules configured for that kind of document, but this is the normal behavior) ;
- the list of "allowed companies" for a user should *only ever* be used to let the user switch companies in their user preferences, and never to decide which documents should be visible to the user.

So when users have several companies in their "allowed companies", that
does not mean they will see documents from all these companies all the
time. They must only see the documents from their currently selected
company (and its child companies). If they want to start seeing
documents from another company, their have to switch their current
company in their user preferences.

In a nutshell, a user who belongs to several companies has to choose in which company context they want to work, at all time, and they cannot mix these contexts.
This is critical to ensure that OpenERP stays usable in multi-company mode, otherwise users would mix data from different companies all the time, causing countless errors: for example when you have to select the value for a field (say, a product or a fiscal period) it's not easy to tell which possible value belongs to which company.

** Changed in: openobject-addons
       Status: Fix Committed => Invalid

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

Title:
  Multi-comapnies incorrect access right in view of partner list

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  Hi all,

  this can be tested here
  http://54.247.19.40:48080/
  database: Test_AccessRight
  login: admin, salesA, salesB or salesAB
  password: kazacube

  I created a multi-companies database as admin with two companies
   - company A
   - company_B
  I added useability/multi companies for admin

  Then, as admin:
   Creation of Customer_A with Company A for company in sales & purchases tab
   Creation of Customer_B with Company_B for company in sales & purchases tab
   Creation of Customer_AB with nothing for company in sales & purchases tab
   Creation of salesA with:
        - groups: partner manager, employee, useability/multi companies, sales / Manager, Sale / User all leads, Sales / User
        - company A as company
        - company A as list of companies
   Creation of salesB:
        - groups: partner manager, employee, useability/multi companies, sales / Manager, Sale / User all leads, Sales / User
        - company_B as company
        - company_B as list of companies
   Creation of salesAB
        - groups: partner manager, employee, useability/multi companies, sales / Manager, Sale / User all leads, Sales / User
        - company A as company
        - company A and company_B as list of companies

  Tests:
   - login as salesA: OK: I can see CustomerA, CustomerAB, company A in partner list
   - login as salesB: OK: I can see CustomerB and CustomerAB, company B in partner list: OK
   - login as salesAB: KO: I can see CustomerA and CustomerAB, company A but NOT customerB NOR company_B in partner list

  Many thanks for your help

  Damien D.

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


References