Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

xml view validate error ?

Odebírat

Get notified when there's activity on this post

This question has been flagged
xmlviewv7
1 Odpovědět
11301 Zobrazení
Avatar
Benoit COVILLE

Hi, Wrote a new module, get a validate error (arch: Invalid XML for View Architecture) whith new xml view: <openerp> <data> <record model="ir.ui.view" id="ingram_categ_search"> <field name="name">ingram.categ.search</field> <field name="model">ingram.productcategory</field> <field name="type">search</field> <field name="arch" type="xml"> <search string="Recherche mapping Ingram Micro" version="7.0"> <field name="ingramcateg" string="Categorie Ingram"/> <field name="openerpcateg" string="Categorie OpenERP"/> <field name="nomcateg" string="Description"/> </search> </field> </record>

<!-- Vue recherche mapping produit -->
    <record model="ir.ui.view" id="ingram_product_search">
        <field name="name">ingram.product.search</field>
        <field name="model">ingram.product</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
            <search string="Recherche mapping Ingram Micro" version="7.0">
                <field name="categorie" string="Categorie Ingram"/>
                <field name="marque" string="Marque"/>
                <field name="ean13" string="Code EAN"/>
                <field name="ref_ingram" string="Ref Ingram"/>
                <field name="ref_marque" string="Ref Marque"/>
                <field name="description1" string="Description"/>
            </search>
        </field>
    </record>

    <!-- Vue arbre mapping produit -->
    <record model="ir.ui.view" id="ingram_product_tree">
        <field name="name">ingram.product.tree</field>
        <field name="model">ingram.product</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Mapping produits Ingram" version="7.0">
                <field name="categorie" string="Categorie Ingram"/>
                <field name="marque" string="Marque"/>
                <field name="ean13" string="Code EAN"/>
                <field name="ref_ingram" string="Ref Ingram"/>
                <field name="ref_marque" string="Ref Marque"/>
                <field name="description1" string="Description"/>
            </tree>
        </field>
    </record>

<!-- Vue formulaire mapping produit -->
    <record model="ir.ui.view" id="ingram_product_form">
        <field name='name'>ingram.product.form</field>
        <field name="model">ingram.product</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Mapping produits Ingram" version="7.0">
                <field name="categorie" string="Categorie Ingram"/>
                <field name="marque" string="Marque"/>
                <field name="ean13" string="Code EAN"/>
                <field name="ref_ingram" string="Ref Ingram"/>
                <field name="ref_marque" string="Ref Marque"/>
                <field name="description1" string="Description 1"/>
                <field name="description2" string="Description 2"/>
                <field name="image_medium" widget="image" class="oe_avatar oe_left"/>                   
            </form>
        </field>
    </record>

    <!-- Vue arbre mapping categorie -->
    <record model="ir.ui.view" id="ingram_categ_tree">
        <field name="name">ingram.categ.tree</field>
        <field name="model">ingram.productcategory</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Mapping categories Ingram" version="7.0">
                <field name="ingramcateg" string="Categorie Ingram"/>
                <field name="openerpcateg" string="Categorie OpenERP"/>
                <field name="nomcateg" string="Description"/>
            </tree>
        </field>
    </record>

<!-- Vue formulaire mapping categorie -->
    <record model="ir.ui.view" id="ingram_categ_form">
        <field name="name">ingram.categ.form</field>
        <field name="model">ingram.productcategory</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Mapping categories Ingram" version="7.0">
                <field name="ingramcateg" string="Categorie Ingram"/>
                <field name="openerpcateg" string="Categorie OpenERP"/>
                <field name="nomcateg" string="Description"/>
            </form>
        </field>
    </record>

<!-- Action categories -->
    <record model="ir.actions.act_window" id="ingram_categ_action">
        <field name="name">mapping categorie Ingram</field>
        <field name="res_model">ingram.productcategory</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>
    <record model="ir.actions.act_window" id="ingram_product_action">
        <field name="name">mapping produit Ingram</field>
        <field name="res_model">ingram.product</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

<!-- Menu categorie -->
    <menuitem id="ingram_parent" name="INGRAM" icon="terp-partner"/>
    <menuitem id="menu_ingram_parent" name="Mapping categories Ingram" parent="ingram_parent"/>
    <menuitem id="menu_ingram_parent2" name="Mapping produits Ingram" parent="ingram_parent"/>
    <menuitem action="ingram_categ_action" id="menu_ingram_category" parent="menu_ingram_parent" string="Categories"/>
    <menuitem action="ingram_product_action" id="menu_ingram_product" parent="menu_ingram_parent2" string="Produits"/>
</data>

</openerp>

Can't understand where is my error ??? Can you help please. Regards.

0
Avatar
Zrušit
charlesraj

<field name="type"> This type of line is not essential in V7.0.

Sudhir Arya (ERP Harbor Consulting Services)

Can you post error traceback?

Avatar
ClueLogics Technologies Pvt. Ltd.
Nejlepší odpověď

Hi

Try to remove version="7.0" from tree and search view

Thanks
Sandeep

4
Avatar
Zrušit
Benoit COVILLE
Autor

Sorry Guys, Just found it : made a mistake in one of my custom fields name. Thanks.

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
how to show a field from parent object in view window ?
xml view v7
Avatar
Avatar
1
zář 19
10178
Is 'name' attribute in tag 'field' of value 'name' always required in v7 xml view ?
xml view v7
Avatar
0
bře 15
7700
How can I create a view list editable only for edition?
development xml view v7
Avatar
1
srp 21
10252
How to auto refresh view? Vyřešeno
view v7
Avatar
Avatar
Avatar
Avatar
Avatar
12
pro 23
45458
How do I remove a button from the sale.order.form? Vyřešeno
xml view
Avatar
Avatar
Avatar
Avatar
Avatar
6
zář 17
9399
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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