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 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ă
errorv7
3 Răspunsuri
9841 Vizualizări
Imagine profil
bogdan baltatu

Hello I look at the code and find no error. Can someone help me please?

<openerp> <data> <menuitem name="IG-OpenERP" id="ig_openerp_main"/> <menuitem name="IG-OpenERP" parent="ig_openerp_main" id="ig_openerp"/>

    <!-- Main form -->
    <record model="ir.ui.view" id="edit_nomfurn">
        <field name="name">Nomfurn</field>
        <field name="model">ig.nomfurn</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Nomfurn" version="7.0">
                <field name="cod_f"/>
            </form>
        </field>
    </record>

    <!-- Action -->
    <record id="action_nomfurn" model="ir.actions.act_window">
        <field name="name">View nomfurn</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ig_nomfurn</field>
        <field name="view_type">form</field>
        <field name="view_mode">view,form</field>
        <field name="nomfurn" ref="edit_nomfurn"/>
    </record>

    <menuitem name="Nomprod" parent="ig_openerp" id="ig_nomprod" action="action_nomfurn"/>

</data>

</openerp> nomfurn.py

from openerp.osv import osv, fields
class ig_nomfurn(osv.osv):
_name='ig.nomfurn'
_description='Nomfurn'
_columns = {
    'cod_f' : fields.char('cod_f',size=10) ,
    }
ig_nomfurn()

__openerp__.py

{
"name" : "IG_OpenERP",
"version" : "1.0",
"author" : "bogdan @ ",
"website" : "",
"category" : "Generic Modules/Others",
"depends" : ["base"],
"description" : "IG DB to OpenERP",
"init_xml" : ["nomfurn_view.xml"],
"demo_xml" : [],
"update_xml" : [],
"active" : False,
"installable" : True,

}

0
Imagine profil
Abandonează
Andreas Brueckl

Can you paste the whole traceback?

Imagine profil
Andreas Brueckl
Cel mai bun răspuns

Here are my comments:

  • Since version 7.0 the type field of ir.ui.view is not used anymore. You have to remove it in your view edit_nomfurn
  • In action_nomfurn the field nomfurn does not exist. Rename it to view_id or remove the whole line. Also in field res_model rename ig_nomfurn to ig.nomfurn

Try this:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
    <!-- Top menu item -->
    <menuitem name="IG-OpenERP" id="ig_openerp_main"/>
    <menuitem name="IG-OpenERP" parent="ig_openerp_main" id="ig_openerp"/>

    <!-- Main form -->
    <record model="ir.ui.view" id="edit_nomfurn">
        <field name="name">Nomfurn</field>
        <field name="model">ig.nomfurn</field>
        <field name="arch" type="xml">
            <form string="Nomfurn" version="7.0">
                <field name="cod_f"/>
            </form>
        </field>
    </record>

    <!-- Action -->
    <record id="action_nomfurn" model="ir.actions.act_window">
        <field name="name">View nomfurn</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ig.nomfurn</field>
        <field name="view_type">form</field>
        <field name="view_mode">view,form</field>
    </record>

    <menuitem name="Nomprod" parent="ig_openerp" id="ig_nomprod" action="action_nomfurn"/>

</data>
</openerp>
0
Imagine profil
Abandonează
Imagine profil
bogdan baltatu
Autor Cel mai bun răspuns

I made changes and error still exists

nomfurn_view.xml

<?xml version="1.0" encoding="utf-8"?>

<openerp> <data> <menuitem name="IG-OpenERP" id="ig_openerp_main"/> <menuitem name="IG-OpenERP" parent="ig_openerp_main" id="ig_openerp"/>

    <!-- Main form -->
    <record model="ir.ui.view" id="edit_nomfurn">
    <field name="name">Nomfurn</field>
    <field name="model">ig.nomfurn</field>
    <field name="arch" type="xml">
        <form string="Nomfurn" version="7.0">
            <field name="cod_f"/>
        </form>
    </field>
    </record>

    <!-- Action -->
    <record id="view_id" model="ir.actions.act_window">
        <field name="name">View nomfurn</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">ig.nomfurn</field>
        <field name="view_type">form</field>
        <field name="view_mode">view,form</field>
        <field name="nomfurn" ref="edit_nomfurn"/>
    </record>

    <menuitem name="Nomprod" parent="ig_openerp" id="ig_nomprod" action="action_nomfurn"/>

</data>

</openerp>

0
Imagine profil
Abandonează
Imagine profil
Lady Sharmane Udtuhan
Cel mai bun răspuns
 I think your error is in this line
  <field name="nomfurn" ref="edit_nomfurn"/>
Try to chnage this to this one
      <field name="view_id" ref="edit_nomfurn"/> 
Try this :   I hope it will help :D
  <record model="ir.actions.act_window" id="view_id">
       <field name="name">View nomfurn</field>
       <field name="res_model">ig.nomfurn</field>
       <field name="view_type">form</field>
       <field name="view_id" ref="edit_nomfurn"/> 
       <field name="view_mode">tree,form</field> 
    </record>
0
Imagine profil
Abandonează
bogdan baltatu
Autor

I made changes and error still exists

bogdan baltatu
Autor

I extract this from server log 2013-09-25 08:11:37,918 6472 ERROR nvncompany openerp.tools.convert: Parse error in file:///f:/OpenERP%207.0/Server/server/openerp/addons/ig_openerp/nomfurn_view.xml:9: <record model="ir.ui.view" id="edit_nomfurn"> <field name="name">Nomfurn</field> <field name="model">ig.nomfurn</field> <field name="arch" type="xml"> <form string="Nomfurn" version="7.0"> <field name="cod_f"/> </form> </field> </record>

Lady Sharmane Udtuhan

Again can you try this code: <record id="edit_nomfurn" model="ir.ui.view"> <field name="name">Nomfurn</field> <field name="model">ig.nomfurn</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Nomfurn" version="7.0"> <sheet string="Nomfurn"> <field name="cod_f"/> </sheet> </form> </field> </record>

bogdan baltatu
Autor

I made changes and error still exists :(

Subhin P V

can you copy paste the error log. ?

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
Broken Pipe error when trying to view module's description
error v7
Imagine profil
0
mar. 15
8816
TypeError: ClientWidget is null - bug ?
error v7
Imagine profil
Imagine profil
2
mar. 15
8157
What is "ValueError: No such external ID currently defined in the system: note.note_stage_01"?
error v7
Imagine profil
0
mar. 15
4458
Messaging Archives Warning: Access Denied
error v7 massaging
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
9
apr. 19
11624
Unable to install community modules : [Errno 13] Permission denied Rezolvat
error v7 debian
Imagine profil
Imagine profil
Imagine profil
2
iul. 16
21451
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