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

ParseError: "Wrong value for ir.ui.view.type: 'data'"

S'inscrire

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

Cette question a été signalée
ir.ui.view
4 Réponses
24840 Vues
Avatar
Nada MES

I just created a module using this code :

<record id="cym_form" model="ir.ui.view">
      <field name="name">CYM Tag</field>
      <field name="model">cym.tag</field>
      <field name="priority">1</field>
      <field name="arch" type="xml">
	<data><field name="cym_tag"/>
	<field name="modules" widget="one2many_tags"/>
      </data></field>
    </record>

And when I try to istall it I get this error :

ParseError: "Wrong value for ir.ui.view.type: 'data'" while parsing /home/production/odoo/addons/crm_cym/form_cym_view.xml:4

I really don't understand where it came from. Is it the use of wigdet ? The model ?

Here is my py code :

class ir_module(osv.osv):
    _inherit = 'ir.module.module'
    _columns = {
        'tag_id': fields.many2one('cym.tag', 'tag_name'),
    }

class cym_tag(osv.osv):
    _name = 'cym.tag'
    _order = 'name asc'

    _columns = {
        'tag_name': fields.char(u'Nom du Tag', size=128, required=True),
        'modules': fields.one2many('ir.module.module', 'tag_id', 'Modules'),
    }

1
Avatar
Ignorer
Avatar
Ajeet Yadav (Softprime Consulting Pvt Ltd)
Meilleure réponse

I think you use data tag  after <field name="arch" type="xml">.
You can use below code-

<record id="cym_form" model="ir.ui.view">
      <field name="name">CYM Tag</field>
      <field name="model">cym.tag</field>
      <field name="priority">1</field>
      <field name="arch" type="xml">
	<form><field name="cym_tag"/>
	<field name="modules" widget="one2many_tags"/>
      </form></field>
    </record>


3
Avatar
Ignorer
Avatar
Nada MES
Auteur Meilleure réponse

Actually I didn't notice it but in my code there is no data tag after

<field name="arch" type="xml"> but it's written in the error when I want to install my module !

1
Avatar
Ignorer
Avatar
Umang Patel (upa)
Meilleure réponse
You can try like this:
<record id="cym_form" model="ir.ui.view">
    <field name="name">CYM Tag</field>
    <field name="model">cym.tag</field>
    <field name="priority">1</field>
    <field name="arch" type="xml">
        <form>
            <sheet>
                <group>
                    <field name="cym_tag"/>
                    <field name="modules" widget="one2many_tags"/>
                </group>
            </sheet>
        </form>
    </field>
</record>
This will solve your problem.
0
Avatar
Ignorer
Avatar
EDISA
Meilleure réponse

Estuve revisando ,, y yo tenia el mismo error....... lo que trata de decir odoo..... el error es que te falta un dato ........ el dato que te falta es .

<form>

</form>

precisamente donde aparece el """data""" ahi pon eso entonces debera funcionar bien el modulo


0
Avatar
Ignorer
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é
Tree view problem
ir.ui.view
Avatar
Avatar
1
mai 22
3471
Odoo v.11 - Can not upgrade Website Builder
ir.ui.view
Avatar
1
sept. 18
3426
[Solved] ParseError: "Wrong value for ir.ui.view.type: 'field'" Résolu
windows ir.ui.view
Avatar
Avatar
1
mai 15
24735
what is the newn column name of view_template_id odoo 14 in odoo 15?
ir.ui.view v14 v15
Avatar
Avatar
1
juil. 25
3249
Expected singleton error when trying to navigate toother pager
action ir.ui.view ir.actions.act
Avatar
0
mars 24
1586
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