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

error on clicking 'Install'-ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Abonare

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

Această întrebare a fost marcată
moduleinstallviewone2manyvalidateerror
1 Răspunde
5865 Vizualizări
Imagine profil
sneha antony

I developed a module in openerp 7 and added the module to the addons folder thru /opt/openerp/server/openerp/addons.When the modules list is updated,the new module is visible in the installed modules list.The issue is when i click the Install Button in the module,there appears an error like this ,in a box. ValidateError

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

I tried for a long to debug the issue but didn't find the real problem yet.It seems that the problem is with the .xml file(or maybe .py file).Both the files are attached.

warranty_info.py

from openerp.osv import osv, fields

class warranty_warranty(osv.osv):

_name = 'warranty.warranty'

_columns = {
    'name':fields.many2one('res.partner','Customer Name'),
'contract':fields.many2one('account.analytic.account','Contract'),
'batch_no':fields.char('Batch No.'),
'status':fields.selection([('open','Open'),('close','Close')],'Warranty Status'),
'serial_no':fields.char('Serial No.'),
'notes':fields.text('Details'),
    'line_ids': fields.one2many('order.line','ordr_id',"PREVENTIVE MAINTENANCE"),

}

warranty_warranty()

class order_line(osv.osv):

_description = "Order Line" 

_name = "order.line"

_columns = {
'ordr_id': fields.many2one('warranty.warranty', 'ID'),
'date': fields.date('Date'),
'pm_status': fields.selection([('pending','Pending'),('complete','Complete')],'Preventive Maintenance Status'),

}

order_line()

warrranty_info_view.xml

<openerp> <data>

<record model="ir.ui.view" id="warranty_search"> <field name="name">warranty.search</field> <field name="model">warranty.warranty</field> <field name="type">search</field> <field name="arch" type="xml"> <search string="warranty information search"> <field name="name" string="Name"/> <field name="contract" string="Contract"/> </search> </field> </record>

<record id="warranty_warranty_tree" model="ir.ui.view"> <field name="name">warranty.result.tree</field> <field name="model">warranty.warranty</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="warranty_result">
<field name="name"/>
<field name="contract"/> <field name="batch_no"/> <field name="status"/>
<field name="serial_no"/> </tree> </field> </record>

<record id="warranty_warranty_form" model="ir.ui.view"> <field name="name">warranty.result.form</field> <field name="model">warranty.warranty</field> <field name="arch" type="xml"> <form string="Warranty_result" version="7.0">
<sheet> <group> <group> <field name="name"/>
<field name="contract"/> <field name="batch_no"/> <field name="status"/>
<field name="serial_no"/> <field name="notes"/> </group> </group> <notebook> <page string="Preventive Maintenance"> <field name="line_ids"> <tree string="Preventive Maintenance" editable="bottom"> <field name="date"/> <field name="pm_status"/> </tree> </field> </page> </notebook> </sheet> </form> </field> </record>

<record id="action_warranty_warranty" model="ir.actions.act_window"> <field name="name">Warranty Details</field> <field name="res_model">warranty.warranty</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record>

<menuitem id="warranty_parent" name="Warranty"/> <menuitem id="menu_warranty_parent" name="Warranty Management" parent="warranty_parent"></menuitem> <menuitem action="action_warranty_warranty" id="menu_warranty_warranty" parent="menu_warranty_parent" string="Result"/> </data> </openerp>

0
Imagine profil
Abandonează
Imagine profil
sridhar
Cel mai bun răspuns

<openerp> <data>

<record model="ir.ui.view" id="warranty_search"> <field name="name">warranty.search</field> <field name="model">warranty.warranty</field> <field name="type">search</field> <field name="arch" type="xml"> <search string="warranty information search"> <field name="name" string="Name"/> <field name="contract" string="Contract"/> </search> </field> </record>

<record id="warranty_warranty_tree" model="ir.ui.view"> <field name="name">warranty.result.tree</field> <field name="model">warranty.warranty</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="warranty_result"> <field name="name"/> <field name="contract"/> <field name="batch_no"/> <field name="status"/> <field name="serial_no"/> </tree> </field> </record>

<record id="warranty_warranty_form" model="ir.ui.view"> <field name="name">warranty.result.form</field> <field name="model">warranty.warranty</field> <field name="arch" type="xml"> <form string="Warranty_result" version="7.0"> <sheet> <group> <group> <field name="name"/> <field name="contract"/> <field name="batch_no"/> <field name="status"/> <field name="serial_no"/> <field name="notes"/> </group> <notebook> <page string="Preventive Maintenance"><group> <field name="line_ids"> <tree string="Preventive Maintenance" editable="bottom"> <field name="date"/> <field name="pm_status"/> </tree> </field> </page> </notebook> </group></group> </sheet> </form> </field> </record>

<record id="action_warranty_warranty" model="ir.actions.act_window"> <field name="name">Warranty Details</field> <field name="res_model">warranty.warranty</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record>

<menuitem id="warranty_parent" name="Warranty"/> <menuitem id="menu_warranty_parent" name="Warranty Management" parent="warranty_parent"></menuitem> <menuitem action="action_warranty_warranty" id="menu_warranty_warranty" parent="menu_warranty_parent" string="Result"/> </data> </openerp>

Try this .xml it will be work.

0
Imagine profil
Abandonează
sneha antony
Autor

This seems to be my same code.Is there any change with that of mine?

sneha antony
Autor

I tried with the code which you provided.But the same error appears

sridhar

see the terminal, they tell which field is missing. some changes in that code.

sneha antony
Autor

I tried with the code you provided.But still the same error is repeating

sridhar

now try that

sneha antony
Autor

the code you gave?

sridhar

i updated the code.

sneha antony
Autor

the code which you gave as anwer has been tried.But the error still exists

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 occurred while validating the field(s) arch: Invalid XML for View Architecture! while installing a module .
module install view architecture validateerror
Imagine profil
Imagine profil
Imagine profil
2
mar. 15
9459
Validate error while module installation
module install validateerror cmms v6v7
Imagine profil
0
mar. 15
5959
odoo-14: I get an error when I try to install a module in Digital Ocean Rezolvat
module install
Imagine profil
Imagine profil
1
apr. 21
6620
How to display a field in a view from a different model?
view one2many
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
7
aug. 25
35408
Unable to install module Rezolvat
module install
Imagine profil
Imagine profil
2
apr. 15
5409
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