c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #18571
[Bug 729669] Re: [6.0] can not switch / write company in preferences
yes sure - these are correctly shown in the selection widgets
I am on
OpenERP revisions: Mon Mar 7 07:47:41 CET 2011
server 3349
addons 4408
I think this worked till last week or so - AND it works today again ....
could it be the the current company_id is passed in the context ?
self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
BUT - this seems to have changed
a user with admin rights sees only the current company in "companies"
only admin (id=1) sees all
--
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/729669
Title:
[6.0] can not switch / write company in preferences
Status in OpenERP Server:
Incomplete
Bug description:
base/res/res_user.py - def write
if not (values['company_id'] in self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
del values['company_id']
always deletes company_id because
self.read(cr, uid, uid, ['company_ids'], context=context)['company_ids']):
does not return the available company list but the "old" company id
had to comment
#del values['company_id']
to get it working temporarily
References