Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
moduleinstallviewone2manyvalidateerror
1 Odgovori
5864 Prikazi
Avatar
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
Avatar
Opusti
Avatar
sridhar
Best Answer

<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
Avatar
Opusti
sneha antony
Avtor

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

sneha antony
Avtor

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
Avtor

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

sridhar

now try that

sneha antony
Avtor

the code you gave?

sridhar

i updated the code.

sneha antony
Avtor

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!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Error occurred while validating the field(s) arch: Invalid XML for View Architecture! while installing a module .
module install view architecture validateerror
Avatar
Avatar
Avatar
2
mar. 15
9459
Validate error while module installation
module install validateerror cmms v6v7
Avatar
0
mar. 15
5953
odoo-14: I get an error when I try to install a module in Digital Ocean Solved
module install
Avatar
Avatar
1
apr. 21
6619
How to display a field in a view from a different model?
view one2many
Avatar
Avatar
Avatar
Avatar
Avatar
7
avg. 25
35405
Unable to install module Solved
module install
Avatar
Avatar
2
apr. 15
5409
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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