Comments (11)
Which module? Which version? Detailed steps to reproduce the problem?
from hr-holidays.
Module: hr_holiday_public
Version: 13.0.1.0.1
Odoo 13.0 (Community Edition)
Step to reproduce the Problem:
in all Leave Types I have checked "Exclude Public Holidays" to exclude public holidays.
I add public holidays in Leaves > Public Holidays > Public Holidays
in Leaves dashbord I selected the Days I want to be on leave.
Then I got the Error
from hr-holidays.
Can you also indicate which public holidays and which leave (dates)?
from hr-holidays.
from hr-holidays.
from hr-holidays.
from hr-holidays.
I uninstalled the module hr_attendance_report_theoretical_time then it worked as desired
Technical Name | hr_attendance_report_theoretical_time
License | Affero GPL-3
Latest Version | 13.0.1.0.1
from hr-holidays.
OK, thanks for digging about the reason.
@jarroyomorales maybe you can check for the problem?
from hr-holidays.
I have solved the problem as follows:
I created in Module hr_attendance_report_theoretical_time a new model in the modules folder (hr_employee_public.py)
I have added the field theoretical_hours_start_date to the hr.emloyee.public as follows:
from odoo import fields, models
class HrEmployeePublic(models.Model):
_inherit = "hr.employee.public"
theoretical_hours_start_date = fields.Date(
help="Fill this field for setting a manual start date for computing "
"the theoretical hours independently from the attendances. If "
"not filled, employee creation date or the calendar start date "
"will be used (the greatest of both)."
)
This solved the problem for me.
Can you please check that it is correct
Many thanks
from hr-holidays.
This should be solved since a while.
from hr-holidays.
Hi, I have a similar error.
Odoo 13.0 (Community Edition)
In the selection process module, when I click on applications > create > skills, create a new entry I get this error.
It also appears when I click on the skill_level_id field.
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5219, in _update_cache
field_values = [(fields[name], value) for name, value in values.items()]
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5219, in
field_values = [(fields[name], value) for name, value in values.items()]
KeyError: 'stage_id'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, 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 14, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in call
return 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 1339, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 6225, in onchange
record = self.new(initial_values, origin=self)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5577, in new
record._update_cache(values, validate=False)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5225, in update_cache
cache.set(self, field, field.convert_to_cache(value, self, validate))
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2536, in convert_to_cache
id = comodel.new(value, origin=origin).id
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5577, in new
record._update_cache(values, validate=False)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5221, in _update_cache
raise ValueError("Invalid field %r on model %r" % (e.args[0], self._name))
ValueError: Invalid field 'stage_id' on model 'hr.employee'
from hr-holidays.
Related Issues (16)
- "Expected singleton" Error When Approving Company-level Absences in hr_leave_custom_hour_interval HOT 1
- module not working HOT 1
- hr_holidays_calendar_event_privacy: tests are failing in main 15.0 branch HOT 1
- Migration to version 14.0 HOT 11
- error from _leave_intervals HOT 2
- Public Holiday Leave Computation Not Working HOT 5
- I can't open Settings and Save any changes HOT 1
- Migration to version 15.0 HOT 3
- 15.0 hr_holidays_public: cannot save line with variable_date = false
- [BUG?] Install FAILS in Odoo 14 community edition HOT 1
- Migration to version 16.0 HOT 4
- Public Holidays not shown HOT 5
- [BUG][14.0][hr_holidays_public] action_validate() override doesn't loop self HOT 3
- [16.0] hr_holidays_public: time off duration is getting wrong after installed hr_work_entry_holidays HOT 1
- Migration to version 17.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hr-holidays.