Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Unable to update modules

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
7 Odpowiedzi
6622 Widoki
Awatar
Laurent Dinclaux

Hello,

A customer contacted me because of issues updating modules. He is not able to tell me which action he has taken prior to facing the issue.

When trying to update using a SuperAdmin account, an error is shown. In the web console the full error log is: (no error in odoo log file)

Server application error
 Error code: 200 
 Error message: Odoo Server Error 
 Error data message:
 Sorry, you are not allowed to access documents of type 'Attachment' (ir.attachment). This operation is allowed for the groups:
    - User types/Internal User - (Operation: read, User: 4)
None 
 Error data debug:
 Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/api.py", line 745, in get
    value = self._data[field][record._ids[0]]
KeyError: 60701

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 996, in __get__
    value = env.cache.get(record, self)
  File "/home/odoo/src/odoo/13.0/odoo/api.py", line 751, in get
    raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('loempia.module(60701,).image_ids', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/home/odoo/src/odoo/13.0/odoo/tools/func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.access', <function IrModelAccess.check at 0x7f49da3a4950>, 4, False, 'ir.attachment', 'read', True, ('fr_FR',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 1003, in __get__
    recs._fetch_field(self)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 2935, in _fetch_field
    self._read(fnames)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3035, in _read
    field.read(fetched)
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 2869, in read
    lines = comodel.search(domain, limit=self.limit)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 1609, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/home/odoo/src/odoo/13.0/addons/calendar/models/ir_attachment.py", line 21, in _search
    return super(Attachment, self)._search(args, offset=offset, limit=limit, order=order, count=count, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_attachment.py", line 410, in _search
    count=False, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 4364, in _search
    model.check_access_rights('read')
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3204, in check_access_rights
    return self.env['ir.model.access'].check(self._name, operation, raise_exception)
  File "<decorator-gen-22>", line 2, in check
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_model.py", line 1548, in check
    raise AccessError(msg % msg_params)
odoo.exceptions.AccessError: ("Sorry, you are not allowed to access documents of type 'Attachment' (ir.attachment). This operation is allowed for the groups:\n\t- User types/Internal User - (Operation: read, User: 4)", None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/home/odoo/src/odoo/13.0/odoo/tools/func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.access', <function IrModelAccess.check at 0x7f49da3a4950>, 4, False, 'ir.attachment', 'read', True, ('fr_FR',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/odoo/src/odoo/13.0/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 910, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/custom/private/loempia/controllers/embed.py", line 96, in update
    'ico': module.image_ids and '/apps/module_image?image_id=%s' % module.image_ids[0].id or '',
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 2246, in __get__
    return super().__get__(records, owner)
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 1005, in __get__
    record._fetch_field(self)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 2935, in _fetch_field
    self._read(fnames)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3035, in _read
    field.read(fetched)
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 2869, in read
    lines = comodel.search(domain, limit=self.limit)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 1609, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/home/odoo/src/odoo/13.0/addons/calendar/models/ir_attachment.py", line 21, in _search
    return super(Attachment, self)._search(args, offset=offset, limit=limit, order=order, count=count, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_attachment.py", line 410, in _search
    count=False, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 4364, in _search
    model.check_access_rights('read')
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3204, in check_access_rights
    return self.env['ir.model.access'].check(self._name, operation, raise_exception)
  File "<decorator-gen-22>", line 2, in check
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_model.py", line 1548, in check
    raise AccessError(msg % msg_params)
odoo.exceptions.AccessError: ("Sorry, you are not allowed to access documents of type 'Attachment' (ir.attachment). This operation is allowed for the groups:\n\t- User types/Internal User - (Operation: read, User: 4)", None)

0
Awatar
Odrzuć
Awatar
Anisha Bahukhandi
Najlepsza odpowiedź

Hello laurent, 

First of all make sure user from which you are Updating extension have sufficient permission

Else, as per log

It seems like below code causing the issue, 


"/home/odoo/src/custom/private/loempia/controllers/embed.py", line 96, in update

    'ico': module.image_ids and '/apps/module_image?image_id=%s' % module.image_ids[0].id or ''


Kindly try to replace this line with this line

'ico': module.sudo().image_ids and '/apps/module_image?image_id=%s' % module.sudo().image_ids[0].id or ''

Thanks

Anisha Bahukhandi

Technical Content Writer

Webkul

1
Awatar
Odrzuć
Awatar
Dragan Vukosavljevic
Najlepsza odpowiedź

Hello everyone,

this happened to me too after last few times Odoo was experiencing network or servers outage. Once it solved on its own. I was experiencing the same issue from mid March, and now it works again. It seams that Odoo fixed it.

Regards,

Dragan

0
Awatar
Odrzuć
Awatar
Stephan Keller
Najlepsza odpowiedź

Hello,

this issue has been reported on Github (https://github.com/odoo/odoo/issues/48388).

My technically view:

It seems like a request to https://apps.odoo.com/apps/embed/update is failing. Maybe the website (Odoo backend server) has been updated to Odoo 13 and there is a configuration problem on this site/endpoint with the "loempia" module.

After installation of (at least) one outdated addon/module the error appears after hitting the Updates button in the menu (tested with Odoo 12 and Odoo 13 docker image locally)

0
Awatar
Odrzuć
Awatar
Ahmed elghazaly
Najlepsza odpowiedź

same here and I'm superadmin!!

0
Awatar
Odrzuć
Awatar
Patrick Strzempek
Najlepsza odpowiedź

I have the same issue!

0
Awatar
Odrzuć
Awatar
Laurent Dinclaux
Autor Najlepsza odpowiedź

Thanks.

Please can you tell me how to do so ? I don't know Odoo very well, I've been called to the rescue as I am a sysadmin and developer.

0
Awatar
Odrzuć
Awatar
Mustufa Rangwala
Najlepsza odpowiedź

Hello,

I think some of record rule of ir.attachment causing issue at your end. Since you are login with superadmin it should not happen. Can you check record rule of ir.attachment object.

Regards.

Mustufa Rangwala

0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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