Allocation Leave Request Error

Asked by ajiz


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/", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/v7/web/addons/web/controllers/", line 1128, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/opt/openerp/v7/web/addons/web/controllers/", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/v7/web/addons/web/", 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/", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/v7/web/addons/web/", line 103, in send
    raise xmlrpclib.Fault(, formatted_info)

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

English Edit question
Odoo Addons (MOVED TO GITHUB) Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :

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

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.