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

SOLVED! Employee app error. Help needed to understand

Abonare

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

Această întrebare a fost marcată
odoo.shv13
5 Răspunsuri
10116 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Imagine profil
imad chaikhi
Cel mai bun răspuns

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
Imagine profil
Abandonează
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!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
[Odoo13] Many2many fields MyModel.channel_ids and res.partner.channel_ids use the same table and columns Rezolvat
odoo.sh v13
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
sept. 24
20818
Demande d'explication - odoo.sh | odoo online Rezolvat
odoo.sh
Imagine profil
Imagine profil
1
nov. 25
358
Odoo.sh initiating shutdown every 5-10 mins
odoo.sh
Imagine profil
Imagine profil
1
iul. 25
2902
Odoo 11: How to edit odoo.conf file in odoo.sh for queue jobs?
odoo.sh
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
apr. 25
13549
odoo.sh determine production or dev instance from code ? Rezolvat
odoo.sh
Imagine profil
1
feb. 25
4562
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