c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12485
[Bug 702568] [NEW] Company ignored after editing Preferences
Public bug reported:
While testing multi-company functionality on my OpenERP 6.0 RC2 (on
Windows 7), I see that nothing happens when I try to switch companies
from the EDIT PREFERENCES window.
Upon closer look to the source code, I find that there is indeed a validation that checks whether the selected company is assigned to the logged user in \addons\base\res\res_user.py (line 368):
if not (values['company_id'] in self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
However, the selected company IS assigned to me, which I can confirm by simply watching the variables used in this code line. I find that by simply converting the id from the 'values' list to integer, the condintion works correctly:
if not (int(values['company_id']) in self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
After introducing this change to my RC2 installation, the modified
company is saved correctly (although the web page's header doesn't
reflect the change even after refreshing it, something I should probably
report in the WebServer project)
Hope I got this right, as I am new to OpenERP. Thanks.
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: company multi preferences
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/702568
Title:
Company ignored after editing Preferences
Status in OpenObject Server:
New
Bug description:
While testing multi-company functionality on my OpenERP 6.0 RC2 (on
Windows 7), I see that nothing happens when I try to switch companies
from the EDIT PREFERENCES window.
Upon closer look to the source code, I find that there is indeed a validation that checks whether the selected company is assigned to the logged user in \addons\base\res\res_user.py (line 368):
if not (values['company_id'] in self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
However, the selected company IS assigned to me, which I can confirm by simply watching the variables used in this code line. I find that by simply converting the id from the 'values' list to integer, the condintion works correctly:
if not (int(values['company_id']) in self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
After introducing this change to my RC2 installation, the modified
company is saved correctly (although the web page's header doesn't
reflect the change even after refreshing it, something I should
probably report in the WebServer project)
Hope I got this right, as I am new to OpenERP. Thanks.
Follow ups
References