Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    Real Estate
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    Consulting
    • Accounting Firm
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • Solar Energy Systems
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    Others
    • 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
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

Inherited field is not exist Error

ติดตาม

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

คำถามนี้ถูกตั้งค่าสถานะ
errorinheritancefieldodoov15
4 ตอบกลับ
5453 มุมมอง
อวตาร
Selman Yilmaz

Hello,

First of all, everything  i make is working on my local computer but this error happen when i tried to update this module inside of a server.


I add some fieldsto res.company

class InheritAccountMove(models.Model):
_inherit = 'res.company'

tax_office = fields.Many2one('tax.office', string='Tax Office')
building_no = fields.Char(string='Building Number')
district_name = fields.Char(string='District/Town')
e_invoice_username = fields.Char(string="E-Invoice API Username")
e_invoice_password = fields.Char(string="E-Invoice API Password")
e_invoice_catalog = fields.Char(string="E-Invoice API Catalog")
e_invoice_isyeri = fields.Char(string="E-Invoice API Isyeri")
e_invoice_wsdl = fields.Char(string="E-Invoice API wsdl")


This is the XML looklike

id="view_company_form_inherit" model="ir.ui.view">
name="name">company.form
name="model">res.company
name="inherit_id" ref="base.view_company_form"/>
name="arch" type="xml">
expr="//field[@name='vat']" position="after">
name="tax_office"/>
name="building_no"/>
name="district_name"/>
name="e_invoice_username"/>
name="e_invoice_password"/>
name="e_invoice_catalog"/>
name="e_invoice_isyeri"/>
name="e_invoice_wsdl"/>


Its returning:

THERE IS NO FIELD "e_invoice_username" inside of res.company.

this fields starting with e_invoice is new ones. tax_office, building_no and district name was created 1 week ago and only with them it was working good.

Error started when i add this e_invoice fields.

I tried uninstall whole module and upload again but nothing changed.

I didn't understand why this is happening ?

Any idea for this problem ?


0
อวตาร
ละทิ้ง
อวตาร
Waleed Ali Mohsen
คำตอบที่ดีที่สุด

The XML is working and found the fields but the fields not added to the DB so you need to restart Odoo service and then from apps -> update app lists (need to activate developer), because you are added some python code.

Important Note: If you have any changes in python code, you need to restart the Odoo service and update app lists.

0
อวตาร
ละทิ้ง
อวตาร
Antonio Hermelinda
คำตอบที่ดีที่สุด

It looks like you are getting an error that says that there is no field e_invoice_username in the res.company model. This error is usually caused by one of the following issues:

  1. The field was not correctly defined in the Python code. Make sure that you have correctly defined the field in your InheritAccountMove model and that it has the correct name and type.

  2. The Python code has not been loaded by the Odoo server. Make sure that the module containing the Python code has been installed and that the server has been restarted after the installation.

  3. There is a problem with the XML definition of the field. Make sure that the field is correctly defined in the XML and that it is being inherited from the correct view.

  4. There is a problem with the database. If you made any changes to the database directly (e.g. through SQL commands), these changes may have caused the error. In this case, you may need to restore the database from a backup.


0
อวตาร
ละทิ้ง
อวตาร
Sudhir Arya (ERP Harbor Consulting Services)
คำตอบที่ดีที่สุด

There could be multiple reasons for the cause.

One of the common reasons could be this. Please make sure that the module is not added in multiple places like Odoo addons and in some other folders as well. 

If this is the case, remove the module from one of the places and use the latest one and try to upgrade it again.

0
อวตาร
ละทิ้ง
อวตาร
Nugroho Widi
คำตอบที่ดีที่สุด

This is why I prefer to create or customize a model using Studio, to avoid issues like this. Fast simple and error free. After the model and views are working well we can continue the manual coding if needed.

-1
อวตาร
ละทิ้ง
Waleed Ali Mohsen

This can be done if your Odoo hosted in odoo.sh or on-promise but you can't do that if your hosted in Odoo Online.

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

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

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
Error in opening Odoo Studio - ValueError: <xpath expr="..."> cannot be located in parent view แก้ไขแล้ว
error inheritance studio odoo
อวตาร
อวตาร
2
มี.ค. 24
4113
Error Context - field does not exist แก้ไขแล้ว
error inheritance field context
อวตาร
อวตาร
อวตาร
2
มิ.ย. 16
18896
How can i update One2many field on Create method ?
error one2many odoo v14 v15
อวตาร
อวตาร
อวตาร
อวตาร
3
พ.ค. 23
4147
Barcode App Error Odoo v15 | You are expected to scan one or more products or a package available at the picking location แก้ไขแล้ว
error barcode odoo v15 barcodeapp
อวตาร
อวตาร
อวตาร
อวตาร
3
พ.ค. 22
8097
Cannot start odoo service in Ubuntu. แก้ไขแล้ว
service installation error odoo v15
อวตาร
อวตาร
อวตาร
3
มี.ค. 22
15323
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • 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