Getting traceback errors when trying to install the OpenHRMS Core App. If i attempt to install any of the 14 apps by themselves i get the same error. Running Ubuntu 20.04, Odoo 14, OpenHRMS 14. I get 403 errors in the forum trying to post the traceback output as well -_-. Suggestions are appreciated
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
This issue was caused due to an issue in hr_payroll_community module.
We have fixed the issue and you can download the latest version from the following link.
https://apps.odoo.com/apps/modules/14.0/hr_payroll_community/
Regards
Still generating errors but for a different item (see error below)
Error:
Odoo Server Error
Traceback (most recent call last):
File "C:\odoo\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\odoo\server\odoo\http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "C:\odoo\server\odoo\http.py", line 360, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\odoo\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\odoo\server\odoo\http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "C:\odoo\server\odoo\http.py", line 913, in __call__
return self.method(*args, **kw)
File "C:\odoo\server\odoo\http.py", line 532, in response_wrap
response = f(*args, **kw)
File "C:\odoo\server\odoo\addons\web\controllers\main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\odoo\server\odoo\addons\web\controllers\main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\odoo\server\odoo\api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\odoo\server\odoo\api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\odoo\server\odoo\addons\ohrms_loan_accounting\models\hr_loan_acc.py", line 177, in action_payslip_done
return super(HrPayslipAcc, self).action_payslip_done()
File "C:\odoo\server\odoo\addons\ohrms_loan\models\hr_payroll.py", line 79, in action_payslip_done
return super(HrPayslip, self).action_payslip_done()
File "C:\odoo\server\odoo\addons\hr_payroll_account_community\models\hr_payroll_account.py", line 110, in action_payslip_done
acc_id = slip.journal_id.default_credit_account_id.id
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\odoo\server\odoo\http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\odoo\server\odoo\http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'account.journal' object has no attribute 'default_credit_account_id'
************************************
I was able to resolve this error by changing the hr_payroll_account.py file and modifying the default_credit_account_id by removing "credit" as this didnt exist in the database structure. I dont know what other errors i may possibly run into but this is a better start than what I had. Now we just need an update for it so it works with Odoo 15.
Hey Jeremy,
Please try to run the requirements file from your odoo-server path. You can try with the following command.
pip3 install -r requirements.txt
If you still find error, try re-installing the python packages from the below script.
https://github.com/Yenthe666/InstallScript/blob/14.0/odoo_install.sh#L78
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
I did go through the process of running the requirements.txt again and I'm still getting this error. I also went through and reinstalled the python packages which also did not resolve the problem. It appears the ohrms_core module requires another module hr_payroll_community to function (its listed in the dependencies) but fails to install this additional module. This module is also listed in the list of Apps within Odoo but again it generates this traceback error when attempting to install it.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Error:
Odoo Server Error
Traceback (most recent call last):
File "/openhrms/openhrms-server/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "/openhrms/openhrms-server/odoo/tools/func.py", line 71, in wrapper
return func(self, *args, **kwargs)
File "/openhrms/openhrms-server/odoo/tools/lru.py", line 34, in __getitem__
a = self.d[obj]
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7f20a97639d0>, 'base.module_category_localization')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openhrms/openhrms-server/odoo/tools/safe_eval.py", line 330, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 660, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 666, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/openhrms/openhrms-server/odoo/addons/base/models/ir_model.py", line 1928, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-35>", line 2, in xmlid_lookup
File "/openhrms/openhrms-server/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/openhrms/openhrms-server/odoo/addons/base/models/ir_model.py", line 1921, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: base.module_category_localization
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 566, in _tag_record
f_val = _eval_xml(self, field, env)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 114, in _eval_xml
return safe_eval(a_eval, idref2)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 37, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
File "/openhrms/openhrms-server/odoo/tools/safe_eval.py", line 346, in safe_eval
raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))
ValueError: <class 'ValueError'>: "External ID not found in the system: base.module_category_localization" while evaluating
"{'search_default_category_id': ref('base.module_category_localization'), 'search_default_name': 'Payroll'}"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/openhrms/openhrms-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/openhrms/openhrms-server/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/openhrms/openhrms-server/odoo/http.py", line 360, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/openhrms/openhrms-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/openhrms/openhrms-server/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/openhrms/openhrms-server/odoo/http.py", line 913, in __call__
return self.method(*args, **kw)
File "/openhrms/openhrms-server/odoo/http.py", line 532, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/openhrms/openhrms-server/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/openhrms/openhrms-server/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-71>", line 2, in button_immediate_install
File "/openhrms/openhrms-server/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/openhrms/openhrms-server/odoo/addons/base/models/ir_module.py", line 475, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/openhrms/openhrms-server/odoo/addons/base/models/ir_module.py", line 593, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/openhrms/openhrms-server/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/openhrms/openhrms-server/odoo/modules/loading.py", line 458, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/openhrms/openhrms-server/odoo/modules/loading.py", line 346, in load_marked_modules
loaded, processed = load_module_graph(
File "/openhrms/openhrms-server/odoo/modules/loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/openhrms/openhrms-server/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 719, in parse
self._tag_root(de)
File "/openhrms/openhrms-server/odoo/tools/convert.py", line 681, in _tag_root
raise ParseError('while parsing %s:%s, near\n%s' % (
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/openhrms/openhrms-server/odoo/http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/openhrms/openhrms-server/odoo/http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /openhrms/openhrms-server/OpenHRMS/hr_payroll_community/views/res_config_settings_views.xml:3, near
<record id="open_payroll_modules" model="ir.actions.act_window">
<field name="name">Payroll</field>
<field name="res_model">ir.module.module</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context" eval="{'search_default_category_id': ref('base.module_category_localization'), 'search_default_name': 'Payroll'}"/>
<field name="search_view_id" ref="base.view_module_filter"/>
</record>