c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12538
[Bug 702568] Re: Company ignored after editing Preferences
Correction: turning off the menu tips would work because the write is
done with an empty string and not '0', but there is nevertheless
something incorrect going on.
BTW, using the GTK client to change the user preferences is a workaround
(but you might need to logout/login) for some of the preferences to be
applied in web as well.
--
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 Web Client:
In Progress
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.
References