← Back to team overview

openerp-india team mailing list archive

[Bug 1093038] Re: v7.0: unable to share portal

 

This fix is NOT fully working in the current 7.0 stable release! 
After applying the patch every user gets this error message after the login and after clicking on a menu item like "project" or "sales":

OpenERP Server Error
Client Traceback (most recent call last):
  File "/opt/openerp/11069-lightbase/web/addons/web/http.py", line 195, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/11069-lightbase/web/addons/web/controllers/main.py", line 1078, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/opt/openerp/11069-lightbase/web/addons/web/controllers/main.py", line 1070, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/11069-lightbase/web/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 "/opt/openerp/11069-lightbase/web/addons/web/session.py", line 31, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/11069-lightbase/web/addons/web/session.py", line 104, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
  File "/opt/openerp/11069-lightbase/web/addons/web/session.py", line 90, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/11069-lightbase/server/openerp/netsvc.py", line 289, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/11069-lightbase/server/openerp/service/web_services.py", line 614, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/11069-lightbase/server/openerp/osv/osv.py", line 169, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/11069-lightbase/server/openerp/osv/osv.py", line 123, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/11069-lightbase/server/openerp/osv/osv.py", line 179, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/11069-lightbase/server/openerp/osv/osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/11069-lightbase/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 "/opt/openerp/11069-lightbase/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 "/opt/openerp/11069-lightbase/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 "/opt/openerp/11069-lightbase/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 "/opt/openerp/11069-lightbase/server/openerp/osv/orm.py", line 3606, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/openerp/11069-lightbase/server/openerp/osv/orm.py", line 3666, in _read_flat
    if context.get('lang'):
AttributeError: 'int' object has no attribute 'get'


This error message shows only up once.

-- 
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/1093038

Title:
  v7.0: unable to share portal

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  lient Traceback (most recent call last):
    File "/home/odoo/source/web/addons/web/http.py", line 195, in dispatch
  Step To Reproduce:
  1. select customer
  2. Click "More" > "Embed"  
  3. Click "Share"

  Below is the result:

      response["result"] = method(self, **self.params)
    File "/home/odoo/source/web/addons/web/controllers/main.py", line 1082, in call_button
      action = self._call_kw(req, model, method, args, {})
    File "/home/odoo/source/web/addons/web/controllers/main.py", line 1070, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/home/odoo/source/web/addons/web/session.py", line 40, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/home/odoo/source/web/addons/web/session.py", line 28, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/home/odoo/source/web/addons/web/session.py", line 101, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/home/odoo/source/web/addons/web/session.py", line 87, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/odoo/source/server/openerp/netsvc.py", line 281, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/odoo/source/server/openerp/service/web_services.py", line 614, in dispatch
      res = fn(db, uid, *params)
    File "/home/odoo/source/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/odoo/source/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/odoo/source/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/odoo/source/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/odoo/source/addons/share/wizard/share_wizard.py", line 696, in go_step_2
      self._check_preconditions(cr, uid, wizard_data, context=context)
    File "/home/odoo/source/addons/portal/wizard/share_wizard.py", line 56, in _check_preconditions
      return super(share_wizard_portal, self)._check_preconditions(cr, uid, wizard_data, context=context)
    File "/home/odoo/source/addons/share/wizard/share_wizard.py", line 663, in _check_preconditions
      self._assert(self.has_share(cr, uid, context=context),
  TypeError: has_share() takes at least 4 arguments (4 given)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1093038/+subscriptions


References