Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Can't save My Time off Request ValueError: Invalid field 'certificates' on model 'hr.employee.public' The above server error caused the following client error: null

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
invalidfieldswarningsValueError
1 Răspunde
3834 Vizualizări
Imagine profil
Chad

I hope someone guides me on how to fix this ValueError.


Can't save My Time off Request here's the error:


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

File "/opt/odoo16/odoo/api.py", line 984, in get

cache_value = field_cache[record._ids[0]]

KeyError: 30


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/opt/odoo16/odoo/fields.py", line 1160, in __get__

value = env.cache.get(record, self)

File "/opt/odoo16/odoo/api.py", line 991, in get

raise CacheMiss(record, field)

odoo.exceptions.CacheMiss: 'hr.employee(30,).department_id'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/opt/odoo16/odoo/http.py", line 1584, in _serve_db

return service_model.retrying(self._serve_ir_http, self.env)

File "/opt/odoo16/odoo/service/model.py", line 133, in retrying

result = func()

File "/opt/odoo16/odoo/http.py", line 1611, in _serve_ir_http

response = self.dispatcher.dispatch(rule.endpoint, args)

File "/opt/odoo16/odoo/http.py", line 1815, in dispatch

result = self.request.registry['ir.http']._dispatch(endpoint)

File "/opt/odoo16/addons/website/models/ir_http.py", line 235, in _dispatch

response = super()._dispatch(endpoint)

File "/opt/odoo16/odoo/addons/base/models/ir_http.py", line 154, in _dispatch

result = endpoint(**request.params)

File "/opt/odoo16/odoo/http.py", line 697, in route_wrapper

result = endpoint(self, *args, **params_ok)

File "/opt/odoo16/addons/web/controllers/dataset.py", line 42, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/opt/odoo16/addons/web/controllers/dataset.py", line 33, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/opt/odoo16/odoo/api.py", line 459, in call_kw

result = _call_kw_model_create(method, model, args, kwargs)

File "/opt/odoo16/odoo/api.py", line 439, in _call_kw_model_create

result = method(recs, *args, **kwargs)

File "", line 2, in create

File "/opt/odoo16/odoo/api.py", line 409, in _model_create_multi

return create(self, [arg])

File "/opt/odoo16/addons/hr_holidays_attendance/models/hr_leave.py", line 26, in create

res = super().create(vals_list)

File "", line 2, in create

File "/opt/odoo16/odoo/api.py", line 410, in _model_create_multi

return create(self, arg)

File "/opt/odoo16/addons/hr_holidays/models/hr_leave.py", line 945, in create

values.update({'department_id': employees.filtered(lambda emp: emp.id == employee_id).department_id.id})

File "/opt/odoo16/odoo/fields.py", line 2795, in __get__

return super().__get__(records, owner)

File "/opt/odoo16/odoo/fields.py", line 1186, in __get__

recs._fetch_field(self)

File "/opt/odoo16/odoo/models.py", line 3172, in _fetch_field

self._read(fnames)

File "/opt/odoo16/addons/hr/models/hr_employee.py", line 194, in _read

public.read(fields)

File "/opt/odoo16/odoo/models.py", line 2968, in read

raise ValueError("Invalid field %r on model %r" % (name, self._name))

ValueError: Invalid field 'certificates' on model 'hr.employee.public'


The above server error caused the following client error:

null

0
Imagine profil
Abandonează
Chad
Autor

hi @Niyas Raphy I have updated and copied the full error here.

Niyas Raphy (Walnut Software Solutions)

did you get a chance to see from where the certificates coming from

Chad
Autor

Hi Niyas Raphy, I viewed the source code and I don't see any term certificates. 
I checked on Settings -> Technical -> User Interface -> Views all that have term certificates and set them to inactive. 
Also, there is a field 'certificates' in Settings -> Technical -> Database Structure -> Model -> hr.employee which I added and can't remove because it says 'This column contains module data and cannot be removed!' when try to save the changes.  I also removed the fields 'certificates' in 'hr.employee'  table through Webmin interface.

Niyas Raphy (Walnut Software Solutions)

can you check your custom addons and see from which this field get added

Chad
Autor

Hi Niyas Raphy! 

It was the custom module 'employee_orientation' where the field gets added. 
I have uninstalled it and it works. Thank you for your help!

Imagine profil
Niyas Raphy (Walnut Software Solutions)
Cel mai bun răspuns

Hi,
It seems you have got third party apps or custom codes in your odoo instance. Check your source code to see the usage of term certificates in it.  

Also see the odoo log and see if you can get more information regarding this error. If you believe this as a bug in standard version of odoo, please provide the steps to reproduce the same in Odoo runbot. 

Thanks

2
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
ValueError: The _name attribute "model" is not valid. Rezolvat
ValueError
Imagine profil
Imagine profil
1
nov. 22
4606
How to delete other user default search filter? Rezolvat
tree filtering ValueError
Imagine profil
1
feb. 25
1087
Outgoing Server Privateemail Error: Invalid Operation - Connection Test Failed! Here is what we got instead: email_to
mailserver outgoing_server invalidfieldswarnings
Imagine profil
Imagine profil
1
mai 24
2677
PFC_ERROR Odoo Server Error
odoo ServerError ValueError
Imagine profil
0
ian. 24
1420
TypeError: ProductTemplate._get_report_values() missing 1 required positional argument: 'docids'
python typeerror ValueError
Imagine profil
Imagine profil
1
apr. 23
4002
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now