cybroodoo / openhrms Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
I am trying to install openhrms core with its dependencies. But a warning raises and could not forward.
@CybroOdoo
branch 11
odoo 12 CE
when creating a new Exit Checklist
I got the following error:
Uncaught TypeError: Widget is not a constructor
http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1577
Traceback:
TypeError: Widget is not a constructor
at Class.renderFieldWidget (http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1577:308)
at Class.renderInnerGroupField (http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1628:382)
at http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1626:44
at Function..each..forEach (http://93.104.209.238:8069/web/content/337-c8373c1/web.assets_common.js:12:558)
at Class._renderInnerGroup (http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1623:63)
at Class._renderTagGroup (http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1637:228)
at Class._renderNode [as _super] (http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:1629:246)
at Class.renderNode (http://93.104.209.238:8069/web/content/448-92cbf9d/web.assets_backend.js:2818:50)
at Class.renderNode (http://93.104.209.238:8069/web/content/337-c8373c1/web.assets_common.js:3541:371)
at Function..map..collect (http://93.104.209.238:8069/web/content/337-c8373c1/web.assets_common.js:13:270)
Any advice
Traceback (most recent call last):
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/mnt/d/Desktop/Odoo/V11/server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 936, in call
return self.method(*args, **kw)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/mnt/d/Desktop/Odoo/V11/server/addons/web/controllers/main.py", line 935, in call_button
action = self._call_kw(model, method, args, {})
File "/mnt/d/Desktop/Odoo/V11/server/addons/web/controllers/main.py", line 923, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/mnt/d/Desktop/Odoo/V11/server/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/mnt/d/Desktop/Odoo/V11/addons/oh_hr_zk_attendance/models/zk_machine.py", line 162, in download_attendance
att_obj = self.env['hr.attendance']
NameError: name 'zklib' is not defined
When clicking on the dashboard icon it will not open the dashboard while on refreshing open the dashboard.
Odoo version: 12.0-20181015
OpenHRMS: Latest on this gethub for v12
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 653, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 695, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 938, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 517, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5351, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5273, in _onchange_eval
method_res = method(self)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\ohrms_loan\models\hr_payroll.py", line 27, in onchange_employee
ttyme = datetime.fromtimestamp(time.mktime(time.strptime(date_from, "%Y-%m-%d")))
File "C:\Program Files (x86)\Odoo 12.0\python\lib_strptime.py", line 559, in _strptime_time
tt = _strptime(data_string, format)[0]
File "C:\Program Files (x86)\Odoo 12.0\python\lib_strptime.py", line 329, in _strptime
raise TypeError(msg.format(index, type(arg)))
TypeError: strptime() argument 0 must be str, not <class 'datetime.date'>
New instalation of Odoo 11 CE and OpenHRMS shows this error
Erro:
Uncaught Error: QWeb2: Template 'hr_reminder.reminder_menu' not found
http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:3689
Traceabilidade:
Error: QWeb2: Template 'hr_reminder.reminder_menu' not found
at Object.exception (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:3689:7)
at Engine._render (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:3734:103)
at Engine.render (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:3730:151)
at Class.renderElement (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:3949:1078)
at http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:3949:917
at http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:802:681
at fire (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:796:299)
at Object.add [as done] (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:797:467)
at Array. (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:802:649)
at Function.each (http://192.168.33.147:8069/web/content/425-120360c/web.assets_common.js:625:767)
can you help me please?
Best Regards
While installing Saudi GOSI on Odoo 12 CE with sample data the following error is show up
Error:
Odoo Server Error
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 757, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 612, in _tag_record
raise Exception("Cannot update missing record %r" % xid)
Exception: Cannot update missing record 'hr_payroll.structure_base1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 653, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 695, in dispatch
result = self._call_function(**self.params)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 938, in call
return self.method(*args, **kw)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 517, in response_wrap
response = f(*args, **kw)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 71, in check_and_log
return method(self, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 442, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 535, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\modules\registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 426, in load_modules
loaded_modules, update_module, models_to_check)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 318, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 224, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 801, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 864, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 754, in parse
self.parse(rec, mode)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 763, in parse
exc_info[2]
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 757, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\convert.py", line 612, in _tag_record
raise Exception("Cannot update missing record %r" % xid)
odoo.tools.convert.ParseError: "Cannot update missing record 'hr_payroll.structure_base1'" while parsing file:/d:/program%20files%20(x86)/odoo%2012.0/server/odoo/addons/saudi_gosi/data/rule.xml:48, near
BASE
Base Salary Structure For Overseas Workers
2019-07-31 09:50:39,039 18452 WARNING erp odoo.modules.module: module link_hrms: module not found
When I go through the features of the downloadable ohrms-core, I don't see recruitment included, can you please confirm this, thank you.
Odoo version: 12.0-20181015
OpenHRMS: Latest on this gethub for v12
error:
"
Uncaught Error: QWeb2: Template 'reminder_menu' not found
http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:3374
Traceback:
Error: QWeb2: Template 'reminder_menu' not found
at Object.exception (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:3374:7)
at Engine._render (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:3419:103)
at Engine.render (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:3415:151)
at Class.renderElement (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:3672:1014)
at http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:3682:6
at http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:802:681
at fire (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:796:299)
at Object.add [as done] (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:797:467)
at Array. (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:802:649)
at Function.each (http://erp:8069/web/content/331-cb33ed7/web.assets_common.js:625:767)
"
When I try to install OpenHRMS core it returns:
TypeError: Model 'hr.leave' does not exist in registry.
On Technical Data>Dependencies
I cannot install (with the same error)"
-Open HRMS Multi-Company
-Open HRMS Leave Request Aliasing
Any ideas?
I'm on bitnami docker version 11
odoo.tools.convert.ParseError: "Invalid field 'view_type' on model 'ir.actions.act_window'" while parsing /odoo/custom/CybroOdoo/CybroAddons/hr_contract_types/views/contract_view.xml:3, near hr.contract.view.form.inherit hr.contract hr.contract.type.form hr.contract.type hr.contract.type.tree hr.contract.type hr.contract.type.search hr.contract.type Contract Types hr.contract.type form tree,
After installing Open HRMS GOSI on Odoo 11 EE with demo data, and error is raised up on select the Dashboard for the default employee on Open HRMS.
The error show as the following:
Error:
Odoo Server Error
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 937, in get
value = record.env.cache.get(record, self)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 960, in get
value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x0F2589F0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 936, in call
return self.method(*args, **kw)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 515, in response_wrap
response = f(*args, **kw)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 672, in call_kw_model
result = method(recs, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\addons\hrms_dashboard\models\hrms_dashboard.py", line 33, in get_user_employee_details
employee = self.env['hr.employee'].sudo().search_read([('user_id', '=', uid)], limit=1)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 4239, in search_read
result = records.read(fields)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 2601, in read
values[name] = field.convert_to_read(record[name], record, use_name_get)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 4758, in getitem
return self._fields[key].get(self, type(self))
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 941, in get
self.determine_value(record)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 1052, in determine_value
self.compute_value(recs)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 1008, in compute_value
self._compute_value(records)
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 999, in _compute_value
getattr(records, self.compute)()
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\addons\saudi_gosi\models\gosi.py", line 50, in compute_age
self.ensure_one()
File "D:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 4366, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: hr.employee(1, 9, 10, 11, 12)
Hi:
After installing Saudi GOSI module on Odoo 12 ce with sample data and once select any defined employee an error is raised up as the following:
Odoo Server Error
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1032, in get
value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x08F7EE10>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 970, in get
value = record.env.cache.get(record, self)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1034, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('hr.employee(1,).limit', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 653, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 695, in dispatch
result = self._call_function(**self.params)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 938, in call
return self.method(*args, **kw)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 517, in response_wrap
response = f(*args, **kw)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 2768, in read
values[name] = field.convert_to_read(record[name], record, use_name_get)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 5042, in getitem
return self._fields[key].get(self, type(self))
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 974, in get
self.determine_value(record)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1085, in determine_value
self.compute_value(recs)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1041, in compute_value
self._compute_value(records)
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1032, in _compute_value
getattr(records, self.compute)()
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\addons\saudi_gosi\models\gosi.py", line 50, in compute_age
self.ensure_one()
File "D:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 4643, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: hr.employee(1, 7, 9, 10, 11, 12)
hello
Please we need to allow to translate warning message that appears for the user as an example if the user does not choose accounts when confirming loan request
Posted journal entry must have an unique sequence number per company.
Unable to install module "hrms_dashboard" because an external dependency is not met: No module named pandas
On line 66 in zk_machine.py says:
if command == 2005:
conn = True
but there is no status code 2005 in zkconst.py. What does status code 2005 mean?
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo11/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo11/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo11/odoo/http.py", line 936, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo11/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo11/odoo/api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/opt/odoo/odoo11/odoo/api.py", line 672, in call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo11/addons/hrms_dashboard/models/hrms_dashboard.py", line 239, in employee_leave_trend
self.env.cr.execute(sql, (employee[0]['id'],))
File "/opt/odoo/odoo11/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: function expression in FROM cannot refer to other relations of same query level
LINE 8: ... , generate_series(date_trunc('month', date_from:...
^
I have tried to install Open HRMS - HR Dashboard (hrms_dashboard) on Odoo 13 CE, Windows Environment but without luck to complete it. An error shows up and here is the message:
Unable to install module "hrms_dashboard" because an external dependency is not met: Python library not installed: pandas
I have downloaded the pandas python library using the following command: pip install pandas, copy paste the installed folders into Odoo server (C:\Program Files (x86)\Odoo 13.0\server), restart both the application and the server but without any luck and the error still persists.
how to install this application on win 7, please help me.
Good day CybroOdoo Team ,
OpenHRMS Installation of this module causes the below odoo error log
Please resolve .
Error:
Odoo Server Error
Traceback (most recent call last):
File "/odoo12/odoo12-server/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo12/odoo12-server/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo12/odoo12-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/odoo12/odoo12-server/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/odoo12/odoo12-server/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo12/odoo12-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo12/odoo12-server/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo12/odoo12-server/odoo/http.py", line 941, in call
return self.method(*args, **kw)
File "/odoo12/odoo12-server/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/odoo12/odoo12-server/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/odoo12/odoo12-server/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo12/odoo12-server/odoo/api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/odoo12/odoo12-server/odoo/api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/odoo12/odoo12-server/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/odoo12/odoo12-server/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/odoo12/odoo12-server/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/odoo12/odoo12-server/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/odoo12/odoo12-server/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/odoo12/odoo12-server/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/odoo12/odoo12-server/odoo/modules/loading.py", line 194, in load_module_graph
registry.setup_models(cr)
File "/odoo12/odoo12-server/odoo/modules/registry.py", line 267, in setup_models
model._setup_fields()
File "/odoo12/odoo12-server/odoo/models.py", line 2627, in _setup_fields
field.setup_full(self)
File "/odoo12/odoo12-server/odoo/fields.py", line 502, in setup_full
self._setup_regular_full(model)
File "/odoo12/odoo12-server/odoo/fields.py", line 2428, in _setup_regular_full
invf = comodel._fields[self.inverse_name]
KeyError: 'rating_id'
Hello
I found an issue in hr_employee_updation
as a field "join Date" does not compute the first contract for an employee it appears the current contract only.
After investigate in how it gets date value, I found that in this function https://github.com/CybroOdoo/OpenHRMS/blob/13.0/hr_employee_updation/models/hr_employee.py#L95 get contract_id
not contract_ids
It seems like zklib library used in attendance module uses python 2 but odoo12 is not compatible with python 2. Is that why it only works for specific ZK models even though they all use zk drivers?
Traceback (most recent call last):
File "I:\greenodoo10-win_v2\odoo10\odoo\http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "I:\greenodoo10-win_v2\odoo10\odoo\http.py", line 675, in dispatch
result = self._call_function(**self.params)
File "I:\greenodoo10-win_v2\odoo10\odoo\http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "I:\greenodoo10-win_v2\odoo10\odoo\service\model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "I:\greenodoo10-win_v2\odoo10\odoo\http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "I:\greenodoo10-win_v2\odoo10\odoo\http.py", line 933, in call
return self.method(*args, **kw)
File "I:\greenodoo10-win_v2\odoo10\odoo\http.py", line 504, in response_wrap
response = f(*args, **kw)
File "I:\greenodoo10-win_v2\odoo10\addons\web\controllers\main.py", line 889, in call_button
action = self._call_kw(model, method, args, {})
File "I:\greenodoo10-win_v2\odoo10\addons\web\controllers\main.py", line 877, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "I:\greenodoo10-win_v2\odoo10\odoo\api.py", line 681, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "I:\greenodoo10-win_v2\odoo10\odoo\api.py", line 672, in call_kw_multi
result = method(recs, *args, **kwargs)
File "I:\greenodoo10-win_v2\odoo10\odoo\addons\base\module\module.py", line 410, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "I:\greenodoo10-win_v2\odoo10\odoo\addons\base\module\module.py", line 484, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "I:\greenodoo10-win_v2\odoo10\odoo\modules\registry.py", line 82, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "I:\greenodoo10-win_v2\odoo10\odoo\modules\loading.py", line 338, in load_modules
loaded_modules, update_module)
File "I:\greenodoo10-win_v2\odoo10\odoo\modules\loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "I:\greenodoo10-win_v2\odoo10\odoo\modules\loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "I:\greenodoo10-win_v2\odoo10\odoo\modules\loading.py", line 95, in load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "I:\greenodoo10-win_v2\ocaaddons\stock_scanner\load_scenario.py", line 233, in scenario_convert_file
kind=kind, report=report, pathname=pathname)
File "I:\greenodoo10-win_v2\odoo10\odoo\tools\convert.py", line 839, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "I:\greenodoo10-win_v2\odoo10\odoo\tools\convert.py", line 895, in convert_csv_import
raise Exception(('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading oh_hr_lawsuit_management failed: file oh_hr_lawsuit_management\security/ir.model.access.csv could not be processed:
No matching record found for external id 'model_case_details' in field 'Object'
Missing required value for the field 'Object' (model_id)
No matching record found for external id 'model_wizard_lawsuit' in field 'Object'
Missing required value for the field 'Object' (model_id)
It seems last patch deleted or renamed a column in database, when applying it, human resource module will give "view n/a" error.
Upgrading the hrms core module will fix the issue but it will mess up the menu, attendance, report etc. will show up on main menu instead.
Hello,
This is a fresh install of Openhrms on Odoo 13 CE.
Everytime i load the dashboard page this error show up :
Odoo Server Error
Traceback (most recent call last):
File "/opt/openhrms/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/openhrms/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/openhrms/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/openhrms/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/opt/openhrms/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/openhrms/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/openhrms/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/openhrms/odoo/http.py", line 909, in __call__
return self.method(*args, **kw)
File "/opt/openhrms/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/opt/openhrms/addons/web/controllers/main.py", line 1319, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/openhrms/addons/web/controllers/main.py", line 1311, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/openhrms/odoo/api.py", line 391, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/opt/openhrms/odoo/api.py", line 364, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/openhrms/openhrms/hrms_dashboard/models/hrms_dashboard.py", line 383, in get_attrition_rate
match_join = list(filter(lambda d: d['l_month'] == month_emp[1].split(' ')[:1][0].strip()[:3], month_join))[0]['count']
IndexError: list index out of range
I don't understand why, this is because of the fresh install ? (no data ?)
Odoo [11.0] deployed via Bitnami on GCP. After installation of the Open HRMS Core, it crashed.
Can anyone help?
The setup for your reference:
I tried to regester a 2 days vacations but it is calculated as 1.75 days.
Number of Days | -1.75 | Request Type | Leave Request |
---|---|---|---|
Department | Administration | Employee Tag | |
Leave Type | Legal Leaves 2018 | Status | Approved |
Allocation Mode | By Employee | Start Date | 11/08/2018 10:30:00 |
End Date | 11/11/2018 18:30:00 |
I get this error during installation from the ohrms_core module. Branch 13
Are there any solutions?
`Fehler:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 713, in parse
self._tag_root(de)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 675, in _tag_root
f(rec)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 578, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 4005, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3919, in _load_records_create
return self.create(values)
File "", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 359, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 235, in create
return super(IrActionsActWindow, self).create(vals_list)
File "", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 359, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 59, in create
res = super(IrActions, self).create(vals_list)
File "", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 359, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3624, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
ValueError: Invalid field 'view_type' on model 'ir.actions.act_window'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 13.0\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.0\server\odoo\tools\pycompat.py", line 14, in reraise
raise value
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\service\model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 909, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 510, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1323, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1311, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 410, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 397, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 463, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 573, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 420, in load_modules
loaded_modules, update_module, models_to_check)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 312, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 737, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 804, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 722, in parse
exc_info[2]
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 713, in parse
self._tag_root(de)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 675, in _tag_root
f(rec)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 578, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 4005, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3919, in _load_records_create
return self.create(values)
File "", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 359, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 235, in create
return super(IrActionsActWindow, self).create(vals_list)
File "", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 359, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 59, in create
res = super(IrActions, self).create(vals_list)
File "", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 359, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3624, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
odoo.tools.convert.ParseError: "Invalid field 'view_type' on model 'ir.actions.act_window'" while parsing file:/c:/program%20files%20(x86)/odoo%2013.0/server/odoo/addons/hr_contract_types/views/contract_view.xml:3, near
hr.contract.view.form.inherit
hr.contract
<record id="hr_contract_type_view_form" model="ir.ui.view">
<field name="name">hr.contract.type.form</field>
<field name="model">hr.contract.type</field>
<field name="arch" type="xml">
<form string="Contract Type">
<group col="4">
<field colspan="4" name="name"/>
</group>
</form>
</field>
</record>
<record id="hr_contract_type_view_tree" model="ir.ui.view">
<field name="name">hr.contract.type.tree</field>
<field name="model">hr.contract.type</field>
<field name="arch" type="xml">
<tree string="Contract Type">
<field name="sequence" widget="handle"/>
<field colspan="4" name="name"/>
</tree>
</field>
</record>
<record id="hr_contract_type_view_search" model="ir.ui.view">
<field name="name">hr.contract.type.search</field>
<field name="model">hr.contract.type</field>
<field name="arch" type="xml">
<search string="Search Contract Type">
<field name="name" string="Contract Type"/>
<field name="sequence" string="Sequence"/>
</search>
</field>
</record>
<record id="action_hr_contract_type" model="ir.actions.act_window">
<field name="name">Contract Types</field>
<field name="res_model">hr.contract.type</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="hr_contract_type_view_search"/>
</record>
<menuitem id="hr_menu_contract_type" action="action_hr_contract_type" parent="hr.menu_human_resources_configuration" sequence="3" groups="base.group_no_one"/>
`
Traceback (most recent call last):
File "/opt/odoo11/odoo-server/odoo/fields.py", line 937, in get
value = record.env.cache.get(record, self)
File "/opt/odoo11/odoo-server/odoo/api.py", line 960, in get
value = self._data[field][record.id][key]
KeyError: (<odoo.sql_db.Cursor object at 0x7f0d210e5be0>, 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo11/odoo-server/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo11/odoo-server/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo11/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo11/odoo-server/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo11/odoo-server/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo11/odoo-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo11/odoo-server/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo11/odoo-server/odoo/http.py", line 936, in call
return self.method(*args, **kw)
File "/opt/odoo11/odoo-server/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo11/odoo-server/addons/web/controllers/main.py", line 938, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo11/odoo-server/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo11/odoo-server/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo11/odoo-server/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo11/odoo-server/addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py", line 14, in compute_sheet
return super(HrPayslipEmployees, self.with_context(journal_id=journal_id)).compute_sheet()
File "/opt/odoo11/odoo-server/addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py", line 26, in compute_sheet
slip_data = self.env['hr.payslip'].onchange_employee_id(from_date, to_date, employee.id, contract_id=False)
File "/opt/odoo11/odoo-server/addons/hr_payroll/models/hr_payslip.py", line 430, in onchange_employee_id
worked_days_line_ids = self.get_worked_day_lines(contracts, date_from, date_to)
File "/opt/odoo11/custom/submodules/CybroAddons/hr_employee_shift/models/hr_shift_payroll.py", line 52, in get_worked_day_lines
uom_hour = contract.employee_id.resource_id.calendar_id.uom_id or self.env.ref('product.product_uom_hour',
File "/opt/odoo11/odoo-server/odoo/fields.py", line 941, in get
self.determine_value(record)
File "/opt/odoo11/odoo-server/odoo/fields.py", line 1042, in determine_value
record._prefetch_field(self)
File "/opt/odoo11/odoo-server/odoo/models.py", line 2646, in _prefetch_field
result = records.read([f.name for f in fs], load='_classic_write')
File "/opt/odoo11/odoo-server/odoo/models.py", line 2590, in read
self._read_from_database(stored, inherited)
File "/opt/odoo11/odoo-server/odoo/models.py", line 2709, in _read_from_database
cr.execute(query_str, params)
File "/opt/odoo11/odoo-server/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo11/odoo-server/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
File "/usr/local/lib/python3.5/dist-packages/psycopg2/extensions.py", line 123, in getquoted
pobjs = [adapt(o) for o in self._seq]
File "/usr/local/lib/python3.5/dist-packages/psycopg2/extensions.py", line 123, in
pobjs = [adapt(o) for o in self._seq]
psycopg2.ProgrammingError: can't adapt type 'hr.contract'
In the holidays approval, reasign wizard is making validation and one of the validations Double-validation doesn't work, because this validation field wasn't added!
Odoo version: 12.0-20181015
OpenHRMS: Latest on this gethub for v12
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 653, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 695, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 938, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 517, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 745, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 718, in _call_kw_model
result = method(recs, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 1151, in default_get
defaults = self._convert_to_write(defaults)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\models.py", line 4752, in _convert_to_write
value = field.convert_to_cache(value, self, validate=False)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 1605, in convert_to_cache
raise TypeError("%s (field %s) must be string or date, not datetime." % (value, self))
TypeError: 2018-11-07 12:58:09 (field hr.appraisal.app_period_from) must be string or date, not datetime.
Hi,
I tested module but have a question, why create history record on onchange
function?, is better after write
method. If i discard changes, history was created, but nothing changes.
Hi
I have installed the hrms tools from this repo. and I have few comments about the theme. first of all is it a must to have this theme? because I do prefer the backend theme from openworx.
In case the theme is a must, can I customize the favicon? and can you guys implement the side "log panel"? The main thing I liked about the openworx theme is that the log panel is placed on the side of the screen for wide screens and it moves to the bottom when the screen is squeezed. can you please provide this feature.
Thanks
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo13/odoo/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo13/odoo/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo13/odoo/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 909, in call
return self.method(*args, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1323, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1311, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo13/odoo/odoo/api.py", line 395, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo13/odoo/odoo/api.py", line 382, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo13/odoo-extra-addons/ohrms_loan_accounting/models/hr_loan_acc.py", line 121, in action_double_approve
move = self.env['account.move'].create(vals)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 343, in _model_create_multi
return create(self, [arg])
File "/opt/odoo13/odoo/addons/account/models/account_move.py", line 1546, in create
moves = super(AccountMove, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 344, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/addons/mail/models/mail_thread.py", line 268, in create
threads = super(MailThread, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 344, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/odoo/models.py", line 3722, in create
records = self._create(data_list)
File "/opt/odoo13/odoo/odoo/models.py", line 3862, in _create
for other, data in zip(others, data_list)
File "/opt/odoo13/odoo/odoo/fields.py", line 2740, in create
self.write_batch(record_values, True)
File "/opt/odoo13/odoo/odoo/fields.py", line 2766, in write_batch
return self.write_real(records_commands_list, create)
File "/opt/odoo13/odoo/odoo/fields.py", line 2930, in write_real
flush()
File "/opt/odoo13/odoo/odoo/fields.py", line 2894, in flush
comodel.create(to_create)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 344, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/addons/account/models/account_move.py", line 3163, in create
lines = super(AccountMoveLine, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 344, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/odoo/models.py", line 3679, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
ValueError: Invalid field 'loan_id' on model 'account.move.line'
Create button in Contract History, Job History and Salary History are not working.
http://localhost:8069/web?debug#menu_id=313&action=446
Error:
Odoo Server Error
Traceback (most recent call last):
File "/c/dvlp/odoo/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/c/dvlp/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/c/dvlp/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/c/dvlp/odoo/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/c/dvlp/odoo/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/c/dvlp/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/c/dvlp/odoo/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/c/dvlp/odoo/odoo/http.py", line 937, in call
return self.method(*args, **kw)
File "/c/dvlp/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/c/dvlp/odoo/addons/web/controllers/main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/c/dvlp/odoo/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/c/dvlp/odoo/odoo/api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/c/dvlp/odoo/odoo/api.py", line 672, in call_kw_model
result = method(recs, *args, **kwargs)
File "/c/dvlp/odoo/custom-addons/OpenHRMS/hrms_dashboard/models/hrms_dashboard.py", line 409, in get_attrition_rate
match_join = list(filter(lambda d: d['l_month'] == month_emp[1].split(' ')[:1][0].strip()[:2], month_join))[0]['count']
IndexError: list index out of range
Yesterday's patch fixed the issue
Hi,
We have an Odoo Community V11 installed on a Ubuntu server.
After installing hr_reminder we have this error message :
`Erreur:
Error: QWeb2: Template 'reminder_menu' not found
https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3689
Retraçage :
exception@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3689:7
_render@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3734:92
render@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3730:146
renderElement@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3949:1068
__widgetRenderAndInsert/<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3949:912
then/</</<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:802:678
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
add@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:797:467
then/</<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:802:631
each@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:625:758
then/<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:802:553
Deferred@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:189
then@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:802:518
__widgetRenderAndInsert@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3949:879
prependTo@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3949:214
_loadItems/<@https://crm.ixcys.com/web/content/840-af95866/web.assets_backend.js:756:707
_.forEach@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:12:558
_loadItems@https://crm.ixcys.com/web/content/840-af95866/web.assets_backend.js:756:565
start@https://crm.ixcys.com/web/content/840-af95866/web.assets_backend.js:756:288
OdooClass.extend/</prototype[name]</<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3816:485
show_application@https://crm.ixcys.com/web/content/840-af95866/web.assets_backend.js:505:1231
show_application@https://crm.ixcys.com/web/content/840-af95866/web.assets_backend.js:2596:2374
OdooClass.extend/Class.include/</prototype[name]</<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3819:368
start/<@https://crm.ixcys.com/web/content/840-af95866/web.assets_backend.js:501:2487
then/</</<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:802:678
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
fireWith@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:801:198
Deferred/</deferred[tuple[0]]@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:31
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
add@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:797:467
then/</</<@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:802:753
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
fireWith@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:801:198
Deferred/</deferred[tuple[0]]@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:31
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
fireWith@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:801:198
Deferred/</deferred[tuple[0]]@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:31
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
fireWith@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:801:198
Deferred/</deferred[tuple[0]]@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:31
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
fireWith@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:801:198
Deferred/</deferred[tuple[0]]@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:31
fire@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:796:281
fireWith@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:801:198
Deferred/</deferred[tuple[0]]@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:803:31
loadJS/script.onreadystatechange@https://crm.ixcys.com/web/content/318-be42584/web.assets_common.js:3848:25`
Thank you for your help.
Hello
There is issue that appear when i use this module "hr_employee_updation" because of data is commented in this file https://github.com/CybroOdoo/OpenHRMS/blob/13.0/hr_employee_updation/data/data.xml
as example in this method https://github.com/CybroOdoo/OpenHRMS/blob/13.0/hr_employee_updation/models/hr_employee.py#L104 call "employee_relationship"
Getting an error like this while creating payslip batches after installing the saudi_gosi module.
Odoo Server Error
Traceback (most recent call last):
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/faizal/odoo/odoo12/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/faizal/odoo/odoo12/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/home/faizal/odoo/odoo12/odoo/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/faizal/odoo/odoo12/odoo/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/faizal/odoo/odoo12/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/faizal/odoo/odoo12/odoo/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/faizal/odoo/odoo12/odoo/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/faizal/odoo/odoo12/odoo/addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py", line 14, in compute_sheet
return super(HrPayslipEmployees, self.with_context(journal_id=journal_id)).compute_sheet()
File "/home/faizal/odoo/odoo12/odoo/addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py", line 26, in compute_sheet
slip_data = self.env['hr.payslip'].onchange_employee_id(from_date, to_date, employee.id, contract_id=False)
TypeError: onchange_employee_id() got an unexpected keyword argument 'contract_id'
Some of the buttons are not clickable like
Contracts
Payslip
Board Factor
Employee Profile
Add Joined Date
Add Nationality
Add Mobile
Will this work with V12
Error: Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/mnt/extra-addons/web/web_syncer/http.py", line 9, in __call__
result = self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 672, in call_kw_model
result = method(recs, *args, **kwargs)
File "/mnt/extra-addons/OpenHRMS/hrms_dashboard/models/hrms_dashboard.py", line 142, in get_department_leave
rf = df.groupby(['month', 'department']).sum()
File "/var/lib/odoo/.local/lib/python3.5/site-packages/pandas/core/generic.py", line 6665, in groupby
observed=observed, **kwargs)
File "/var/lib/odoo/.local/lib/python3.5/site-packages/pandas/core/groupby/groupby.py", line 2152, in groupby
return klass(obj, by, **kwds)
File "/var/lib/odoo/.local/lib/python3.5/site-packages/pandas/core/groupby/groupby.py", line 599, in __init__
mutated=self.mutated)
File "/var/lib/odoo/.local/lib/python3.5/site-packages/pandas/core/groupby/groupby.py", line 3291, in _get_grouper
raise KeyError(gpr)
KeyError: 'month'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.