Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ

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

  • ลูกค้าสัมพันธ์
  • e-Commerce
  • ระบบบัญชี
  • สินค้าคงคลัง
  • PoS
  • โปรเจกต์
  • MRP
All apps
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

Field does not exist in model - Odoo18

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
752 มุมมอง
อวตาร
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
อวตาร
ละทิ้ง
Mohamed Boss
ผู้เขียน

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

อวตาร
Cybrosys Techno Solutions Pvt.Ltd
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
Mohamed Boss
ผู้เขียน

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

สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ Odoo คือการใช้งานที่ง่ายดายและผสานการทำงานอย่างสมบูรณ์แบบในเวลาเดียวกัน

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