Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
errorv7
3 Respostes
10002 Vistes
Avatar
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
Avatar
Descartar
Andreas Brueckl

Can you paste the whole traceback?

Avatar
Andreas Brueckl
Best Answer

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
Avatar
Descartar
Avatar
bogdan baltatu
Autor Best Answer

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
Avatar
Descartar
Avatar
Lady Sharmane Udtuhan
Best Answer
 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
Avatar
Descartar
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!

Registrar-se
Related Posts Respostes Vistes Activitat
Broken Pipe error when trying to view module's description
error v7
Avatar
0
de març 15
9004
TypeError: ClientWidget is null - bug ?
error v7
Avatar
Avatar
2
de març 15
8388
What is "ValueError: No such external ID currently defined in the system: note.note_stage_01"?
error v7
Avatar
0
de març 15
4633
Messaging Archives Warning: Access Denied
error v7 massaging
Avatar
Avatar
Avatar
Avatar
Avatar
9
d’abr. 19
11830
Unable to install community modules : [Errno 13] Permission denied Solved
error v7 debian
Avatar
Avatar
Avatar
2
de jul. 16
21680
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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