openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22134
[Bug 1103450] Re: [7.0] Frequently raising traceback "if context.get('lang'): AttributeError: 'int' object has no attribute 'get'"
Hello Daniel Reis,
I have checked this issue more than twice time with latest trunk as well
as with 7.0. But as I shown you in video, I did not face any traceback
for user interface. So, Would you please check again with latest code
and notify us if you face that problem.
Thank you..
** Changed in: openobject-addons
Status: New => Incomplete
--
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/1103450
Title:
[7.0] Frequently raising traceback "if context.get('lang'):
AttributeError: 'int' object has no attribute 'get'"
Status in OpenERP Addons (modules):
Incomplete
Bug description:
I can repeat this error message by accessing the User Preferences
dialog, and then Saving.
I successfully reproduced the error by:
- creating a new Demo database (leaving English as the default language)
- installing the "Social Network" module
- installing the "Project Issues" module
Now, access the User Preferences at the top right, and Save. Sometime you need to repeat once or twice until you get the error message.
The traceback is:
Client Traceback (most recent call last):
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/controllers/main.py", line 1078, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/session.py", line 43, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/share/wizard/share_wizard.py", line 73, in has_share
return self.has_group(cr, uid, module='share', group_xml_id='group_share_user', context=context)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/share/wizard/share_wizard.py", line 70, in has_group
return group_id in self.pool.get('res.users').read(cr, uid, uid, ['groups_id'], context=context)['groups_id']
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/base/res/res_users.py", line 793, in read
res = super(users_view, self).read(cr, uid, ids, fields, context=context, load=load)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/base/res/res_users.py", line 268, in read
result = super(res_users, self).read(cr, uid, ids, fields=fields, context=context, load=load)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/orm.py", line 3606, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/orm.py", line 3666, in _read_flat
if context.get('lang'):
AttributeError: 'int' object has no attribute 'get'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1103450/+subscriptions
References