Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

SOLVED! Employee app error. Help needed to understand

Subscriure's

Get notified when there's activity on this post

This question has been flagged
odoo.shv13
5 Respostes
10100 Vistes
Avatar
Terje Tõnutare

Hello everyone!


When trying to open an employee card in Employee app, I am getting the error below. Could you plea give me some pointers how could I fix this.

Error:

Odoo Server Error


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/api.py", line 745, in get

    value = self._data[field][record._ids[0]]

KeyError: 2


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/fields.py", line 996, in __get__

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

  File "/home/odoo/src/odoo/odoo/api.py", line 751, in get

    raise CacheMiss(record, field)

odoo.exceptions.CacheMiss: ('hr.employee.public(2,).company_id', None)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 624, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/home/odoo/src/odoo/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/home/odoo/src/odoo/odoo/http.py", line 669, in dispatch

    result = self._call_function(**self.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/http.py", line 339, in checked_call

    result = self.endpoint(*a, **kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 915, in __call__

    return self.method(*args, **kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/src/odoo/addons/hr_org_chart/controllers/hr_org_chart.py", line 55, in get_org_chart

    employee = self._check_employee(employee_id, **kw)

  File "/home/odoo/src/odoo/addons/hr_org_chart/controllers/hr_org_chart.py", line 27, in _check_employee

    Employee.browse(employee_id).check_access_rule('read')

  File "/home/odoo/src/odoo/odoo/models.py", line 3228, in check_access_rule

    invalid = self - self._filter_access_rules_python(operation)

  File "/home/odoo/src/odoo/odoo/models.py", line 3297, in _filter_access_rules_python

    return self.sudo().filtered_domain(dom or [])

  File "/home/odoo/src/odoo/odoo/models.py", line 5276, in filtered_domain

    data = rec.mapped(key)

  File "/home/odoo/src/odoo/odoo/models.py", line 5206, in mapped

    recs = recs._mapped_func(operator.itemgetter(name))

  File "/home/odoo/src/odoo/odoo/models.py", line 5165, in _mapped_func

    vals = [func(rec) for rec in self]

  File "/home/odoo/src/odoo/odoo/models.py", line 5165, in <listcomp>

    vals = [func(rec) for rec in self]

  File "/home/odoo/src/odoo/odoo/models.py", line 5610, in __getitem__

    return self._fields[key].__get__(self, type(self))

  File "/home/odoo/src/odoo/odoo/fields.py", line 2307, in __get__

    return super().__get__(records, owner)

  File "/home/odoo/src/odoo/odoo/fields.py", line 1003, in __get__

    recs._fetch_field(self)

  File "/home/odoo/src/odoo/odoo/models.py", line 2944, in _fetch_field

    self._read(fnames)

  File "/home/odoo/src/odoo/odoo/models.py", line 3016, in _read

    cr.execute(query_str, params)

  File "/home/odoo/src/odoo/odoo/sql_db.py", line 164, in wrapper

    return f(self, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/sql_db.py", line 241, in execute

    res = self._obj.execute(query, params)

psycopg2.ProgrammingError: column hr_employee_public.timesheet_manager_id does not exist

LINE 1: ...id","hr_employee_public"."coach_id" as "coach_id","hr_employ...

                                                             ^

0
Avatar
Descartar
Avatar
imad chaikhi
Best Answer

Hi which version of odoo you'r using please ?

Try those solutions 

-1 : check if you have added some new field if then comment it and reload your page and go to your apps module and remove the comment and upgrade your module 

-2 : Check your postgres server and restart it and retart odoo session .

Hope this will help!

1
Avatar
Descartar
Terje Tõnutare
Autor

Odoo.sh Version 13

imad chaikhi

have you try the solution that i mentioned

Terje Tõnutare
Autor

Thank you very much Imad!

I first just upgraded the module and this was enough to fix it :D. Too easy to figure it out myself :D.

imad chaikhi

It's a pleasure

Thank you

Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
[Odoo13] Many2many fields MyModel.channel_ids and res.partner.channel_ids use the same table and columns Solved
odoo.sh v13
Avatar
Avatar
Avatar
Avatar
3
de set. 24
20809
Demande d'explication - odoo.sh | odoo online Solved
odoo.sh
Avatar
Avatar
1
de nov. 25
350
Odoo.sh initiating shutdown every 5-10 mins
odoo.sh
Avatar
Avatar
1
de jul. 25
2896
Odoo 11: How to edit odoo.conf file in odoo.sh for queue jobs?
odoo.sh
Avatar
Avatar
Avatar
Avatar
Avatar
4
d’abr. 25
13537
odoo.sh determine production or dev instance from code ? Solved
odoo.sh
Avatar
1
de febr. 25
4558
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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