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

I am creating a custom field, but whenever I try to add it to my form, I get an error.

Abonare

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

Această întrebare a fost marcată
error
7301 Vizualizări
Imagine profil
Amer Homaissi

I created a custom field named "Test Field" and while creating it I gave it a model of purchase.order

I am trying to create a custom field next to Subtotal in the Quotations and Purchase Order forms.

However, after creating the custom field in: Settings - Database Structures - Fields, while setting its Model to purchase.order, whenever I try adding it next to the Subtotal field on the Quotations form, I get an error that says the following:

"Error occurred while validating the field(s) arch: Invalid XML for View Architecture!"

I don't understand what the problem is and how to fix it.

Thank you for your help, in advance.

OQO

0
Imagine profil
Abandonează
Eric

did you make sure the name of the field is spelled right? Custom fields require an "x_" before the name of the field. So the name should be x_test_field

Amer Homaissi
Autor

Field name: x_testfield Field Label: Test Field Type: Float

Eric

Is that the way the name is spelled in the xml view? <field name="x_testField" />

Amer Homaissi
Autor

I couldn't find it in the xml view (purchase_view.xml), and I think it's because I haven't been able to create it into the form yet. Or is it supposed to be there?

Eric

Yes, when you create a field in OpenERP, then you will need to add the field to the correct view. You can do that by adding the field tag like I have above, or you can also add it through the Developer Mode.

Eric

Here is a link that shows you how to add a field in Developer Mode http://openerpservice.in/how-to-add-new-field-in-open-erp-7-0/

Amer Homaissi
Autor

Yes, my problem is occurring when I am in developer mode and I go into Manage Views and attempt to add the field.

Eric

Ok. Make sure you are on the right form. Each form will belong to a model which will have its own fields you can use for it. So if you are modifying the Leads form, then you will need to make sure that the field you added belongs to the crm.leads model

Amer Homaissi
Autor

Thank you for your help. I followed your steps and tried again and it gave me the same error. However, when I tried to do this elsewhere, it did not give me an error. I suspect that the problem might be because I am trying to add it to a tree. How can I add a custom field to a tree?

Eric

If you are adding a field to a tree with the Developer Mode, it works the same as a form. When you click on Manage Views then see the list of forms to edit, select the one with the tree in it. Then you can add the field like you did in the form.

Eric

I would advise to create a custom module rather than adding fields through the Developer Mode though. If there ever is an upgrade, then all the fields that you added using the Developer Mode will get erased. When creating a new module that inherits an existing module, then the fields wont get erased if an upgrade is made. This is the preferred method

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
?"Your country might be blocked by our hosting provider" error when I create new website
error
Imagine profil
0
nov. 25
592
Payment Page Return Error with Razorpay on Mobile Devices
error
Imagine profil
0
sept. 25
1224
Error after installing "purchase" app in Odoo version 18
error
Imagine profil
Imagine profil
1
dec. 24
6777
error schema for TourStep Error
error
Imagine profil
0
nov. 24
2603
Can't modify manifest version of custom module [Odoo.sh]
error
Imagine profil
Imagine profil
Imagine profil
2
iul. 24
5268
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