Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
xmlarchitectureinvalidvalidateerror
2 Replies
9793 Zobrazenia
Avatar
Daniel Galindo

I'm new to programming for OpenERP 7.0, When you import this module to OpenERP gives me an error:ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!. I`m not locate the error. I would be very grateful if you help me. thanks.

__init__.py

 # -*- encoding: utf-8 -*-

 import tipos_acceso_kaicen

__openerp__.py

{
  "name" : "Tipos Acceso Kaicen",
   "version" : "1.0",
   "author" : "Kaicen",
   "category" : "Gestionar tipos de acceso",
   "website" : "",
   "description": "Podremos dar de alta los tipos de acceso de los que disfrutarán nuestros socios",
   "depends" : ["base"],
   "init_xml" : ["tipos_acceso_kaicen_view.xml"],
   "demo xml" : [],
   "update_xml" : ["tipos_acceso_kaicen_view.xml"],
   "active": False,
   "installable": True,
   "data": ["tipos_acceso_kaicen_view.xml"]
 }

tipos_acceso_kaicen.py

 # -*- encoding: utf-8 -*-

from osv import osv, fields
from tools.translate import _


class aceso_tipoacceso(osv.osv):
_name = 'acceso.tipoacceso'

  _columns = {
    'tipo_acceso': fields.char('Tipo Acceso', size=140, required = True),
    'product.id':fields.many2one('product.product', 'Artículo', required = True),
    'numaccesos_tiempo':fields.boolean('numaccesos_tiempo'),
    'cantidad':fields.integer('cantidad'),
    'sale_pack_type': fields.selection((('a', 'A'), ('b', 'B'), ('c', 'C')), 'Sale Packaging Type')
    }
  aceso_tipoacceso()

tipos_acceso_kaicen_view.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
   <data>
    <record model="ir.ui.view" id="view_acceso_tipoacceso_tree">
        <field name="name">acceso.tipoacceso.tree</field>
        <field name="model">acceso.tipoacceso</field>
        <field name="type">tree</field>            
        <field name="arch" type="xml">               
    <tree String="Tipos de Acceso"> 
    <field name="tipo_acceso"/>
    <field name="product.id"/>
    <field name="numaccesos_tiempo"/>
    <field name="cantidad"/>
   </tree>                
        </field>
    </record> 
    <record model="ir.ui.view" id="view_acceso_tipoacceso_form">
        <field name="name">acceso.tipoacceso.form</field>
        <field name="model">acceso.tipoacceso</field>
        <field name="type">form</field>            
        <field name="arch" type="xml">               
    <form String="Tipos de Acceso"> 
    <field name="tipo_acceso"/>
    <field name="product.id"/>
    <field name="numaccesos_tiempo"/>
    <field name="cantidad"/>
    <field name="sale_pack_type"/>
   </form>                
        </field>
    </record>   
<!--Accion disparador tipo acceso  -->
<record model ="ir.actions.act_window" id="open_view_acceso_tipoacceso_form">
<field name="name"> Tipo Acceso</field>
<field name="res_model">acceso.tipoacceso</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
  </record>
   <!--opcion del menu para tipo acceso  -->
 <!--opcion del menu para tipo acceso  -->
<menuitem id="menu_acceso_tipoacceso_open_view_form" name="Tipo acceso" parent="base.menu_base_partner" action="open_view_acceso_tipoacceso_form"/>    
</data>
</openerp>
0
Avatar
Zrušiť
Avatar
Borni DHIFI
Best Answer

Hi,

Invalid attribute String for element tree and form.

string and not String.

 <tree string="Tipos de Acceso"> 
 <form string="Tipos de Acceso">
0
Avatar
Zrušiť
Daniel Galindo
Autor

thank you very much!, solved!

Avatar
Hiral Patel (hip)
Best Answer

Hello,

Update String="Tipos de Acceso" to string="Tipos de Acceso".

0
Avatar
Zrušiť
Daniel Galindo
Autor

thank you very much!, solved!

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

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Can't install custom module -> arch: Invalid XML for View Architecture! Solved
module xml install architecture invalid
Avatar
Avatar
Avatar
4
nov 15
6727
how fixed thies error :Invalid XML for View Architecture!
architecture invalid
Avatar
0
mar 15
7074
Invalid XML for View Architecture on Account Banking Payment export module install
export xml account architecture invalid
Avatar
Avatar
1
mar 15
6666
ValidateError Fehler während der Prüfung des Feldes field(s) arch: Invalid XML for View Architecture!
xml invalid errror
Avatar
1
mar 15
5790
invalid xml architecture?
xml invalid extending inheriting
Avatar
Avatar
Avatar
3
mar 15
6364
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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