Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
moduleinstallviewone2manyvalidateerror
1 Répondre
5876 Vues
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
Ignorer
Avatar
sridhar
Meilleure réponse

<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
Ignorer
sneha antony
Auteur

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

sneha antony
Auteur

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
Auteur

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

sridhar

now try that

sneha antony
Auteur

the code you gave?

sridhar

i updated the code.

sneha antony
Auteur

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

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
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
mars 15
9467
Validate error while module installation
module install validateerror cmms v6v7
Avatar
0
mars 15
5971
odoo-14: I get an error when I try to install a module in Digital Ocean Résolu
module install
Avatar
Avatar
1
avr. 21
6624
How to display a field in a view from a different model?
view one2many
Avatar
Avatar
Avatar
Avatar
Avatar
7
août 25
35420
Unable to install module Résolu
module install
Avatar
Avatar
2
avr. 15
5417
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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