Coder Social home page Coder Social logo

Comments (11)

pedrobaeza avatar pedrobaeza commented on August 17, 2024

Which module? Which version? Detailed steps to reproduce the problem?

from hr-holidays.

gradox2020 avatar gradox2020 commented on August 17, 2024

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.

pedrobaeza avatar pedrobaeza commented on August 17, 2024

Can you also indicate which public holidays and which leave (dates)?

from hr-holidays.

gradox2020 avatar gradox2020 commented on August 17, 2024

Bildschirmfoto vom 2020-05-11 14-02-44

from hr-holidays.

gradox2020 avatar gradox2020 commented on August 17, 2024

Bildschirmfoto vom 2020-05-11 14-04-49

from hr-holidays.

gradox2020 avatar gradox2020 commented on August 17, 2024

Bildschirmfoto vom 2020-05-11 14-05-25

from hr-holidays.

gradox2020 avatar gradox2020 commented on August 17, 2024

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.

pedrobaeza avatar pedrobaeza commented on August 17, 2024

OK, thanks for digging about the reason.

@jarroyomorales maybe you can check for the problem?

from hr-holidays.

gradox2020 avatar gradox2020 commented on August 17, 2024

@pedrobaeza @jarroyomorales

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.

pedrobaeza avatar pedrobaeza commented on August 17, 2024

This should be solved since a while.

from hr-holidays.

jumans92 avatar jumans92 commented on August 17, 2024

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'

image

from hr-holidays.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.