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ó
    • Gestió immobiliària
    • 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

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
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

Wizard parse error

Subscriure's

Get notified when there's activity on this post

This question has been flagged
wizarderrorparse
3 Respostes
5366 Vistes
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
Descartar
Ravi Gadhia

it's batter to provide traceback along with code

Thomas DUPORT
Autor

Sorry i can't paste screenshots pictures :/

Avatar
Paresh Wagh
Best Answer

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
Descartar
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
wizard through a object button is not showing
wizard error
Avatar
Avatar
1
de des. 22
3645
Create/update: a mandatory field is not set Solved
wizard error Odoo16
Avatar
1
de juny 24
3347
[10.0] ParseError: "new row for relation "res_partner" violates check constraint "res_partner_check_name
error parse 10
Avatar
0
de maig 17
6262
[Solved] Error when installing CRM module in Odoo8 Solved
crm error parse
Avatar
2
de des. 23
5723
odoo 9.0c: I cannot reach my attachments. How to solve? Error message inside
error attachments parse 9.0c
Avatar
0
de nov. 16
6444
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 ภาษาไทย 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