Allocation Leave Request Error

Asked by ajiz on 2013-10-03

Hi,

I tried to create a new allocation leaves request for employee by using the employee. This allocation request is for the Public Holidays on the calendar for our country. But this error occured. Can anyone help me on this please?

OpenERP Server Error

Client Traceback (most recent call last):
  File "/opt/openerp/v7/web/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/v7/web/addons/web/controllers/main.py", line 1128, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/opt/openerp/v7/web/addons/web/controllers/main.py", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/v7/web/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/opt/openerp/v7/web/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/v7/web/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/opt/openerp/v7/web/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/v7/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/v7/addons/hr_holidays/hr_holidays.py", line 379, in create
    return super(hr_holidays, self).create(cr, uid, values, context=context)
  File "/opt/openerp/v7/addons/mail/mail_thread.py", line 242, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 4490, in create
    self._workflow_trigger(cr, user, [id_new], 'trg_create', context=context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 3921, in _workflow_trigger
    getattr(wf_service, trigger)(uid, self._name, res_id, cr)
  File "/opt/openerp/v7/server/openerp/workflow/wkf_service.py", line 103, in trg_create
    instance.create(cr, ident, wkf_id)
  File "/opt/openerp/v7/server/openerp/workflow/instance.py", line 30, in create
    workitem.create(cr, res, id_new, ident, stack=stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 40, in create
    process(cr, res, ident, stack=stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 60, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 175, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 183, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 40, in create
    process(cr, res, ident, stack=stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 52, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/opt/openerp/v7/server/openerp/workflow/workitem.py", line 110, in _execute
    res2 = wkf_expr.execute_action(cr, ident, workitem, activity)
  File "/opt/openerp/v7/server/openerp/workflow/wkf_expr.py", line 63, in execute_action
    result = obj.run(cr, ident[0], [activity['action_id']], ctx)
  File "/opt/openerp/v7/server/openerp/addons/base/ir/ir_actions.py", line 636, in run
    body = self.merge_message(cr, uid, action.message, action, context)
  File "/opt/openerp/v7/server/openerp/addons/base/ir/ir_actions.py", line 568, in merge_message
    message = com.sub(merge, keystr)
  File "/opt/openerp/v7/server/openerp/addons/base/ir/ir_actions.py", line 561, in merge
    'time': time,
  File "/opt/openerp/v7/server/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'name'

Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2013-10-03
Last reply:
2013-10-13

I see no reason for this error to happen!
Do you get it even after module update?
Thanks.

Can you help with this problem?

Provide an answer of your own, or ask ajiz for more information if necessary.

To post a message you must log in.