Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Inherited field is not exist Error

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
errorinheritancefieldodoov15
4 Răspunsuri
5481 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Imagine profil
Waleed Ali Mohsen
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Antonio Hermelinda
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Sudhir Arya (ERP Harbor Consulting Services)
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Nugroho Widi
Cel mai bun răspuns

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
Imagine profil
Abandonează
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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Error in opening Odoo Studio - ValueError: <xpath expr="..."> cannot be located in parent view Rezolvat
error inheritance studio odoo
Imagine profil
Imagine profil
2
mar. 24
4146
Error Context - field does not exist Rezolvat
error inheritance field context
Imagine profil
Imagine profil
Imagine profil
2
iun. 16
18918
How can i update One2many field on Create method ?
error one2many odoo v14 v15
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
mai 23
4172
Barcode App Error Odoo v15 | You are expected to scan one or more products or a package available at the picking location Rezolvat
error barcode odoo v15 barcodeapp
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
mai 22
8109
Cannot start odoo service in Ubuntu. Rezolvat
service installation error odoo v15
Imagine profil
Imagine profil
Imagine profil
3
mar. 22
15345
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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