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
    Restauration & Hôtellerie
    • 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
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Bricoleur
    • Matériel informatique & 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
    Parcourir toutes les 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
    • Devenir partenaire
    • Services pour partenaires
    • 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
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

Wizard parse error

S'inscrire

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

Cette question a été signalée
wizarderrorparse
3 Réponses
5604 Vues
Avatar
Thomas DUPORT

Hello, I'm using Openerp 7, I copied a wizard and tried to adapt it, but i had parse error on xml.

This is the architecture of my module :

My module 
 | wizard 
 | | __init__.py
 | | wizard.xml
 | __init__.py
 | __openerp__.py
 | analytic_account.py


account_analytic.py :

from osv import osv
from osv import fields

class AdquatWizard(osv.osv_memory):
_name = 'eggs.jasper.location.valo.wizard'
_description = 'adquat.valo.wizard'

_columns = {
'end_date': fields.date('End date'),
'sav': fields.boolean('SAV'),
'of': fields.boolean('OF'),
}

AdquatWizard()


wizard.xml :

      <record id="view_eggs_jasper_location_valo_wizard" model="ir.ui.view">
<field name="name">eggs.jasper.location.valo.wizard.form</field>
<field name="model">adquat.valo.new.wizard</field>
<field name="arch" type="xml">
<form string="Parametres pour valorisation du stock">
<field name="end_date"/>
<group colspan="4" col="6">
<button icon="terp-gtk-go-back-rtl" string="Lancer" name="launch" type="object"/>
<button icon="gtk-cancel" special="cancel" String="Annuler"/>
</group>
</form>
</field>
</record>


<!--action-->
<record id="action_valo_mensuelle" model="ir.actions.act_window">
<field name="name">Valo mensuelle</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.analytic.account</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<!-- <field name="view_id" ref="adquat_valo_mensuelle.view_adquat_valo_mensuelle_wizard"/>-->
<field name="view_id" ref="adquat_valo_mensuelle.view_eggs_jasper_location_valo_wizard"/>
<field name="target">new</field>
</record>

<!--Menu-->
<menuitem action="action_valo_mensuelle" id="action_valo_mensuelle"
parent="account.menu_analytic_accounting"
groups="analytic.group_analytic_accounting"/>


And i have AttributeError: 'nonetype' object has no attribute 'fields_view_get'

 , and parse error in the wizard near  <record id="view_eggs_jasper_location_valo_wizard" model="ir.ui.view">

  

I have doubts on the architecture, but less for the code itself because i copied it form an existant and working.

Thank you for your help !


0
Avatar
Ignorer
Ravi Gadhia

it's batter to provide traceback along with code

Thomas DUPORT
Auteur

Sorry i can't paste screenshots pictures :/

Avatar
Paresh Wagh
Meilleure réponse

Hi Thomas:

Move the following line that has been commented out and place it outside the <record></record> tag.

<!--            <field name="view_id" ref="adquat_valo_mensuelle.view_adquat_valo_mensuelle_wizard"/>-->

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é
wizard through a object button is not showing
wizard error
Avatar
Avatar
1
déc. 22
3794
Create/update: a mandatory field is not set Résolu
wizard error Odoo16
Avatar
1
juin 24
3578
[10.0] ParseError: "new row for relation "res_partner" violates check constraint "res_partner_check_name
error parse 10
Avatar
0
mai 17
6419
[Solved] Error when installing CRM module in Odoo8 Résolu
crm error parse
Avatar
2
déc. 23
5909
odoo 9.0c: I cannot reach my attachments. How to solve? Error message inside
error attachments parse 9.0c
Avatar
0
nov. 16
6738
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
  • Devenir 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 Svenska ภาษาไทย 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