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

Odoo 18 Community Edition Hotel Management Install Error

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
2 Odpowiedzi
1874 Widoki
Awatar
Fritz Subscreti

Hi,
I tried installing the free Hotel Management app (by Cybrosys) on Odoo18 Community Edition (with all dependencies met) on request of one of my clients. However, I got the following error, saying the following - looking for the category_id:

Occured on mycompany.com on model ir.module.module and id 12 on 2025-02-27 16:38:43 GMT

Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1962, in _transactioning

    return service_model.retrying(func, env=self.env)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 137, in retrying

    result = func()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1929, in _serve_ir_http

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 2177, in dispatch

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

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 333, in _dispatch

    result = endpoint(**request.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 727, in route_wrapper

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

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 40, in call_button

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

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 517, in call_kw

    result = getattr(recs, name)(*args, **kwargs)

  File "<decorator-gen-79>", line 2, in button_immediate_install

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 75, in check_and_log

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

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 480, in button_immediate_install

    return self._button_immediate_function(self.env.registry[self._name].button_install)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 604, in _button_immediate_function

    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

  File "<decorator-gen-13>", line 2, in new

  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked

    return func(inst, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 127, in new

    odoo.modules.load_modules(registry, force_demo, status, update_module)

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 480, in load_modules

    processed_modules += load_marked_modules(env, graph,

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 364, in load_marked_modules

    loaded, processed = load_module_graph(

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 204, in load_module_graph

    registry.setup_models(env.cr)

  File "<decorator-gen-16>", line 2, in setup_models

  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked

    return func(inst, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 351, in setup_models

    model._setup_fields()

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3675, in _setup_fields

    field.setup(self)

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 539, in setup

    self.setup_nonrelated(model)

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 4585, in setup_nonrelated

    invf = comodel._fields[self.inverse_name]

KeyError: 'category_id'

The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPCError@https://mycompany.com/web/assets/debug/web.assets_web.js:29740:9

    makeErrorFromResponse@https://mycompany.com/web/assets/debug/web.assets_web.js:29763:19

    rpc._rpc/promise</<@https://mycompany.com/web/assets/debug/web.assets_web.js:29817:48

How can I correct this?

Thank you


0
Awatar
Odrzuć
Andry Ang

Hi do you know which model that called this 'category_id'. Can you try to print the name of the comodel and see if you have other modules that trigger this.

I think you can trace it this way. I don't have enough clues if only based on this error log to help you.

Awatar
Nikul Vasar
Najlepsza odpowiedź

base on your error it seems like category_id is not updating in your databse table, you should find the category_id field and fix the required changes.

like wise you can specify more on the error in details.


0
Awatar
Odrzuć
Awatar
Fritz Subscreti
Autor Najlepsza odpowiedź

Hi Andry,
at the start of the error message, it says "on model ir.module.module and id 146 ir.module.module and id 146"

Is that sufficient?


My python skills are almost zero :-( but with directions, I'd probably cope

Thanks Andry,

I added it this way:
"def setup_nonrelated(self, model):

        super(One2many, self).setup_nonrelated(model)

        if self.inverse_name:

            # link self to its inverse field and vice-versa

            comodel = model.env[self.comodel_name]

            print('>>>>>>>', comodel._name) 

invf = comodel._fields[self.inverse_name]

            if isinstance(invf, (Many2one, Many2oneReference)):

                # setting one2many fields only invalidates many2one inverses;

                # integer inverses (res_model/res_id pairs) are not supported

                model.pool.field_inverses.add(self, invf)

            comodel.pool.field_inverses.add(invf, self)"

but then got a 503 error. I also added the print line on the same line starting with invf = comodel._fields...

same error. :-(


So, I installed in (in the meantime) on another fresh Odoo 18 install - same system, same everything. I could install the 3rd party Hotel Management App without issue, BUT as soon as I installed another app (CRM), I got the same error - no installation possible.

I guess that means that the Cybrosys Hotel Management App is not coded to work alongside other apps... a pity 

Thanks for your help though, appreciate it!


0
Awatar
Odrzuć
Andry Ang

Hi Fritz, it's not really informative.

Do you have any technical experience with Python? you can try to print the comodel as I mentioned and you will know which model/table that caused the problem.

Andry Ang

That's fine haha, but do you have other experiences?
Like debugging the codes? if yes, you can direct yourself to

This file "/usr/lib/python3/dist-packages/odoo/fields.py", line 4585, in setup_nonrelated
and check on this line of code
invf = comodel._fields[self.inverse_name]
before this, you can add
print('>>>>>>>', comodel._name)

Andry Ang

If it's too hard for you to follow,
I would suggest you to just create new DB and install the module once.

See if the problem still existed.

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