openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #08995
[Bug 954907] [NEW] Changing company does not work properly with gunicorn
Public bug reported:
When OpenERP is running with multiple gunicorn workers, changing company
after login does not work correctly.
To see the issue, create a database with multiple companies and have
rules that limit the view of a set of records e.g. account.account,
based on the company that you are logged into. You need your user Then
start OpenERP with multiple gunicorn workers.
1. Once logged in, change company (in the Preferences dialog).
2. Go to a list of records that give a limited view based on the ir.rule e.g. account.account.
3. Keep refreshing the list by clicking the menu link that displays the record list.
Expected result:
Should only see the accounts for the company that you are logged into - every time that you click on the menu link.
Actual result:
Sometimes you see the accounts that you are logged into, other times you see the accounts from the previous company that you were logged into. Presumably, this is because you have only changed company in one of the gunicorn workers... not all of them. So OpenERP does not seem to be completely stateless when it comes to changing company.
** Affects: openobject-server
Importance: Undecided
Status: New
--
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/954907
Title:
Changing company does not work properly with gunicorn
Status in OpenERP Server:
New
Bug description:
When OpenERP is running with multiple gunicorn workers, changing
company after login does not work correctly.
To see the issue, create a database with multiple companies and have
rules that limit the view of a set of records e.g. account.account,
based on the company that you are logged into. You need your user Then
start OpenERP with multiple gunicorn workers.
1. Once logged in, change company (in the Preferences dialog).
2. Go to a list of records that give a limited view based on the ir.rule e.g. account.account.
3. Keep refreshing the list by clicking the menu link that displays the record list.
Expected result:
Should only see the accounts for the company that you are logged into - every time that you click on the menu link.
Actual result:
Sometimes you see the accounts that you are logged into, other times you see the accounts from the previous company that you were logged into. Presumably, this is because you have only changed company in one of the gunicorn workers... not all of them. So OpenERP does not seem to be completely stateless when it comes to changing company.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/954907/+subscriptions
Follow ups
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Xavier ALT (OpenERP), 2012-05-23
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Vinay Rana (openerp), 2012-05-14
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: James Jesudason, 2012-04-23
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: James Jesudason, 2012-04-23
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Amit Parik (OpenERP), 2012-04-10
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Amit Parik (OpenERP), 2012-04-10
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Dmitrijs Ledkovs, 2012-04-02
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Dmitrijs Ledkovs, 2012-04-02
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Amit Parik (OpenERP), 2012-04-02
-
[Bug 954907] Re: Changing company does not work properly with gunicorn
From: Amit Parik (OpenERP), 2012-04-02
-
[Bug 954907] [NEW] Changing company does not work properly with gunicorn
From: James Jesudason, 2012-03-14
References