Skip to Content
Menu
This question has been flagged
3 Replies
2570 Views

Hello,


I am trying to Create a draft entry for a payslip. However, I get the following error, even though none of the custom modules/salary rules contain: report_bonuses


[Odoo 13 - Local]


Odoo Server Error
Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\cache.py", line 85, in lookup
    r = d[key]
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x033E1108>, 'hr_payroll.report_bonuses')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\pycompat.py", line 14, in reraise
    raise value
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\service\model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 910, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\web\controllers\main.py", line 1324, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\web\controllers\main.py", line 1312, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 387, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 374, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "c:\program files (x86)\odoo 13.0e\server\addons\egymentors_hr\models\hr_payslip_changes.py", line 202, in action_payslip_done
    return super(HrPayslipInherit, self).action_payslip_done()
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\hr_payroll_account\models\hr_payroll_account.py", line 27, in action_payslip_done
    res = super(HrPayslip, self).action_payslip_done()
  File "c:\program files (x86)\odoo 13.0e\server\addons\tags__rule\models\models.py", line 74, in action_payslip_done
    pdf_content, content_type = report.render_qweb_pdf(payslip.id)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_actions_report.py", line 718, in render_qweb_pdf
    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_actions_report.py", line 758, in render_qweb_html
    return self.render_template(self.report_name, data), 'html'
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_actions_report.py", line 541, in render_template
    return view_obj.render_template(template, values)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1174, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1077, in get_view_id
    return view and view.id or self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_model.py", line 1679, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_model.py", line 1670, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-24>", line 2, in xmlid_lookup
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_model.py", line 1659, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: hr_payroll.report_bonuses 
Avatar
Discard

please provide more information to be able to address the issue correctly, for example what custom modules are being used, like tags__rule

Author

Thanks for the reply Axel,

The tags__rule module was removed, but the error is still there unfortunately.

Best Answer

Hi,

Reports in your setup depends on a report_bonuses template.

Which I don't think is in standard Odoo.

Most probably a badly written custom modules, where the module name was forgotten in reference.

Regards,

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 23
335
2
Nov 23
2062
0
Dec 21
1505
0
Sep 20
1557
1
Mar 20
2803