← Back to team overview

openerp-india team mailing list archive

[Bug 1060111] Re: New allocation request leads to "Server Error"

 

** Project changed: openerp-web => openobject-addons

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

Title:
  New allocation request leads to "Server Error"

Status in OpenERP Addons (modules):
  New

Bug description:
  OpenERP 6.2dev-20120925-230102-1 on Debian 6.0.5

  Firefox 15.0.1 on Debian 6.0.5

  Login as "Administrator"

  Go to Human Resources/Leaves/My Allocation Requests

  Click on "Create"

  Create an allocation request for another user (not admin).

  I get:

  OpenERP Server Error

  Client Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 182, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1177, in call_kw
      return self._call_kw(req, model, method, args, kwargs)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1139, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/session.py", line 66, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/session.py", line 51, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 362, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 585, in dispatch
      res = fn(db, uid, *params)
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/lib/pymodules/python2.6/openerp/addons/mail/mail_thread.py", line 182, in create
      thread_id = super(mail_thread, self).create(cr, uid, vals, context=context)
    File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 4341, in create
      self._workflow_trigger(cr, user, [id_new], 'trg_create', context=context)
    File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 3793, in _workflow_trigger
      getattr(wf_service, trigger)(uid, self._name, res_id, cr)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/wkf_service.py", line 108, in trg_create
      instance.create(cr, ident, wkf_id)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/instance.py", line 35, in create
      workitem.create(cr, res, id_new, ident, stack=stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/workitem.py", line 107, in _execute
      returned_action = wkf_expr.execute(cr, ident, workitem, activity)
    File "/usr/lib/pymodules/python2.6/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/usr/lib/pymodules/python2.6/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/usr/lib/pymodules/python2.6/openerp/tools/safe_eval.py", line 242, in safe_eval
      return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 369, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/usr/lib/pymodules/python2.6/openerp/addons/hr_holidays/hr_holidays.py", line 306, in holidays_confirm
      self.message_subscribe(cr, uid, [record.id], user_ids=[record.employee_id.parent_id.user_id.id], context=context)
  TypeError: message_subscribe() got an unexpected keyword argument 'user_ids'

  Workaround: create a the request for "admin", save it, edit it again
  and change the user.

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