Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
invalidfieldswarningsValueError
1 Odpoveď
3833 Zobrazenia
Avatar
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
Avatar
Zrušiť
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!

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

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
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
ValueError: The _name attribute "model" is not valid. Solved
ValueError
Avatar
Avatar
1
nov 22
4606
How to delete other user default search filter? Solved
tree filtering ValueError
Avatar
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
Avatar
Avatar
1
máj 24
2677
PFC_ERROR Odoo Server Error
odoo ServerError ValueError
Avatar
0
jan 24
1420
TypeError: ProductTemplate._get_report_values() missing 1 required positional argument: 'docids'
python typeerror ValueError
Avatar
Avatar
1
apr 23
4000
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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