← Back to team overview

openerp-india team mailing list archive

[Bug 974285] Re: Error on sharing views

 

fixed in trunk by revision 6950

thanks
Quentin

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

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

Title:
  Error on sharing views

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  on 6.1, when I try to share a view (in this case, the sale order list
  view), I get the following error when I want to have an embedded code
  or direct link (first option in the sharing window):

  Client Traceback (most recent call last):
    File "/home/fpi/6.1/web/addons/web/common/http.py", line 180, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/fpi/6.1/web/addons/web/controllers/main.py", line 1047, in call_button
      action = self.call_common(req, model, method, args, domain_id, context_id)
    File "/home/fpi/6.1/web/addons/web/controllers/main.py", line 991, in call_common
      return self._call_kw(req, model, method, args, {})
    File "/home/fpi/6.1/web/addons/web/controllers/main.py", line 1005, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/home/fpi/6.1/web/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/home/fpi/6.1/web/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/home/fpi/6.1/web/addons/web/common/http.py", line 611, in send
      raise fault

  
  Server Traceback (most recent call last):
    File "/home/fpi/6.1/web/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/fpi/6.1/server/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/fpi/6.1/server/openerp/service/web_services.py", line 586, in dispatch
      res = fn(db, uid, *params)
    File "/home/fpi/6.1/server/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/fpi/6.1/server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/fpi/6.1/server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/fpi/6.1/server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/fpi/6.1/addons/share/wizard/share_wizard.py", line 728, in go_step_2
      restrict=True, context=context)
    File "/home/fpi/6.1/addons/share/wizard/share_wizard.py", line 599, in _create_or_combine_sharing_rule
      new_clause = expression.normalize(eval(domain, eval_ctx))
  TypeError: eval() arg 1 must be a string or code object

  Steps to reproduce:
  - Install sale, share and portal
  - go to Sales Order and filter the data to display only the order from one partner
  - click on the left icon to have direct link or to embed the content
  - Validate
  --> Error!

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


References