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

Field does not exist in model - Odoo18

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
1 Odpowiedz
768 Widoki
Awatar
Mohamed Boss

Hi all,

I am trying to upgrade a module on odoo18. But I am getting the following error:


RPC_ERROR


Odoo Server Error


Occured on localhost:8996 on model ir.module.module on 2025-10-03 13:44:48 GMT


Traceback (most recent call last):

  File "C:\Program Files\Odoo 18.0.20250814\server\odoo\convert.py", line 555, in _tag_root

    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

odoo.tools.convert.ParseError: while parsing file:/c:/program%20files/odoo%2018.0.20250814/custom/hms_africa/views/cases_views.xml:19

Error while validating view near:


                                    <field name="disb_date"/>

                                    <field name="service"/>

                                    <field name="total"/>

                                </list>

                            </field>


Field "mode_of_brief" does not exist in model "case.notes"


View error context:

{'file': 'c:\\program files\\odoo '

         '18.0.20250814\\custom\\hms_africa\\views\\cases_views.xml',

'line': 40,

'name': 'hms.cases.form',

'view': ir.ui.view(903,),

'view.model': 'hms.cases',

'view.parent': ir.ui.view(),

'xmlid': 'view_hms_cases_form'}



The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPCError@http://localhost:8996/web/assets/e9f7204/web.assets_web.min.js:3145:338

    makeErrorFromResponse@http://localhost:8996/web/assets/e9f7204/web.assets_web.min.js:3148:163

    rpc._rpc/promise</<@http://localhost:8996/web/assets/e9f7204/web.assets_web.min.js:3153:34

   

Here is are my models


class HmsCase(models.Model):

    _name = 'hms.cases'

    _inherit = ['mail.thread']

    _description = 'HMS Cases Master'

    _rec_name = 'case_name'

    case_name = fields.Char(string="Case Name", tracking=True)

case_note_ids = fields.One2many('case.notes', 'note_id', string="Notes")



class CaseNotes(models.Model):

    _name = 'case.notes'

    _description = 'Case Notes'


    note_id = fields.Many2one('hms.cases', string='Case', required=True)

    note_date = fields.Datetime(string='Date', default=fields.Datetime.now())

    note = fields.Text(string="Note")

    mode_of_brief = fields.Selection([('email', 'EMAIL'),

                                      ('letter', 'OFFICIAL LETTER'),

                                      ('post', 'REGISTERED POST'),

                                      ('other', 'OTHER')],

                                     string="Mode of Brief")





Here is my view:


<?xml version="1.0" encoding="utf-8"?>

<odoo>


    <record id="view_hms_cases_list" model="ir.ui.view">

        <field name="name">hms.cases.list</field>

        <field name="model">hms.cases</field>

        <field name="arch" type="xml">

            <list string="Cases">

                <field name="case_name"/>

            </list>

        </field>

    </record>


    <record id="view_hms_cases_form" model="ir.ui.view">

        <field name="name">hms.cases.form</field>

        <field name="model">hms.cases</field>

        <field name="arch" type="xml">

            <form string="Cases">

                <sheet>

                    <group>

                        <field name="case_name" readonly="status != 'auth_one' and status != 'draft'"/>

                    </group>

                    <field name="case_note_ids" string="Case Notes" mode="list,form">

                        <list default_order="note_date desc" delete="false">

                            <field name="note_date" readonly="1" noupdate="1"/>

                            <field name="note"/>

                        </list>

                        <form string="Case Notes">

                            <group>

                                <field name="note_date" readonly="1" noupdate="1"/>

                                <field name="note"/>

                                <field name="mode_of_brief"/>

                            </group>

                        </form>

                    </field>

                </sheet>

                <chatter/>

            </form>

        </field>

    </record>


    <record id="action_hms_cases" model="ir.actions.act_window">

        <field name="name">Cases</field>

        <field name="res_model">hms.cases</field>

        <field name="view_ids" eval="[Command.clear(),

            (0, 0, {'view_mode': 'list', 'view_id': ref('view_hms_cases_list')}),

            (0, 0, {'view_mode': 'form', 'view_id': ref('view_hms_cases_form')})]"/>

        <field name="view_mode">list,form</field>

        <field name="help" type="html">

            <p class="o_view_nocontent_smiling_face">

                Create a new case

            </p>

        </field>

    </record>


</odoo>


In addition, when i try to do this on Odoo17, it works without any issues. Any assistance will be greatly appreciated. Thanks 

0
Awatar
Odrzuć
Mohamed Boss
Autor

Greetings Cybrosys,

Thanks for your response. I did as you suggested but still getting the same error. I am also observing that the field is already in the database as per screenshot below.

Your assistance is greatly appreciated

Awatar
Cybrosys Techno Solutions Pvt.Ltd
Najlepsza odpowiedź

Hi,


The error you are encountering in Odoo 18 occurs because the field mode_of_brief does not exist in the database for the case.notes model, even though it is defined in your code. This typically happens when a module is upgraded or migrated, and the database schema has not been updated to reflect new fields.


To resolve this, you need to explicitly update the module. You can do this by stopping the Odoo server and running the command:


odoo-bin -d your_database_name -u hms_africa --stop-after-init



This forces Odoo to apply all changes in the module, including creating the missing field in the database.


It is also important to ensure that the module is installed correctly, that there are no typos in the model or field definitions, and that Odoo caches are cleared by restarting the server. After updating, you can verify that the field exists in the database by checking the table columns for case_notes.


In summary, the issue is not with your code but with the database schema. Updating the module properly will ensure that the mode_of_brief field exists, and your form view will function without errors in Odoo 18.


Hope it helps

0
Awatar
Odrzuć
Mohamed Boss
Autor

Greetings Cybrosys,

Thanks for your response. I did as you suggested but still getting the same error. I am also observing that the field is already in the database table

Your assistance is greatly appreciated

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