Skip to Content
Odoo Menu
  • Sign in
  • Teste-o gratuitamente
  • Aplicações
    Finanças
    • Contabilidade
    • Faturação
    • Despesas
    • Folha de cálculo (BI)
    • Documentos
    • Assinatura eletrónica
    Vendas
    • CRM
    • Vendas
    • POS para lojas
    • POS para restaurantes
    • Subscrições
    • Aluguer
    Sites
    • Criador de Sites
    • Comércio eletrónico
    • Blogue
    • Fórum
    • Chat em direto
    • e-Learning
    Cadeia de abastecimento
    • Inventário
    • Produção
    • PLM
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Colaboradores
    • Recrutamento
    • Ausências
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Marketing social
    • Marketing por e-mail
    • Marketing através de SMS
    • Eventos
    • Automação de Marketing
    • Inquéritos
    Serviços
    • Projeto
    • Registos de Horas
    • Assistência no local
    • Assistência
    • Planeamento
    • Agendamentos
    Produtividade
    • Conversas
    • Inteligência artificial
    • IoT
    • VoIP
    • Informação
    • WhatsApp
    Aplicações de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Retalho
    • Livraria
    • Loja de roupa
    • Loja de móveis
    • Mercearia
    • Loja de ferragens
    • Loja de brinquedos
    Alimentação e hotelaria
    • Bar e pub
    • Restaurante
    • Comida rápida
    • Casa de hóspedes
    • Distribuidor de bebidas
    • Hotel
    Imobiliário
    • Agência imobiliária
    • Gabinete de arquitectura
    • Construção
    • Gestão imobiliária
    • Jardinagem
    • Associação de proprietários
    Consultoria
    • Gabinete de contabilidade
    • Parceiro da Odoo
    • Agência de marketing
    • Sociedade de advogados
    • Aquisição de talentos
    • Auditoria e certificação
    Produção
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Brindes promocionais
    Saúde e bem-estar
    • Clube desportivo
    • Ótica
    • Ginásio
    • Profissionais de bem-estar
    • Farmácia
    • Cabeleireiro
    Ofícios
    • Handyman
    • Hardware e suporte técnico
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência do ambiente
    • Aluguer de painéis publicitários
    • Estúdio de fotografia
    • Aluguer de bicicletas
    • Revendedor de software
    Explorar todos os setores
  • Comunidade
    Aprender
    • Tutoriais
    • Documentação
    • Certificações
    • Treino
    • Blogue
    • Podcast
    Capacitar a educação
    • Programa de formação
    • Scale Up! O jogo de negócios
    • Visite a Odoo
    Obter o software
    • Transferir
    • Comparar Edições
    • Versões
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Registe a sua empresa contabilística
    • Programa de afiliados
    Obter serviços
    • Encontre um parceiro
    • Encontre um contabilista
    • Contacte um consultor
    • Serviços de implementação
    • Referências de clientes
    • Apoio
    • Atualizações
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar uma demonstração
  • Preços
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Wizard parse error

Subscribe

Get notified when there's activity on this post

This question has been flagged
wizarderrorparse
3 Replies
6520 Views
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
Discard
Ravi Gadhia

it's batter to provide traceback along with code

Thomas DUPORT
Author

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
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
wizard through a object button is not showing
wizard error
Avatar
Avatar
1
dez. 22
4521
Create/update: a mandatory field is not set Solved
wizard error Odoo16
Avatar
1
jun. 24
4623
[10.0] ParseError: "new row for relation "res_partner" violates check constraint "res_partner_check_name
error parse 10
Avatar
0
mai. 17
7412
[Solved] Error when installing CRM module in Odoo8 Solved
crm error parse
Avatar
2
dez. 23
6834
odoo 9.0c: I cannot reach my attachments. How to solve? Error message inside
error attachments parse 9.0c
Avatar
0
nov. 16
7944
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Código aberto
  • Transferir
  • Github
  • Runbot
  • Traduções
Serviços
  • Alojamento Odoo.sh
  • Apoio
  • Atualizar Versão
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um contabilista
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • A Nossa Empresa
  • Ativos da marca
  • Contacte-nos
  • Trabalhos
  • Eventos
  • Podcast
  • Blogue
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) Português română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

O Odoo é um conjunto de aplicações empresariais de código aberto que abrange todas as necessidades da sua empresa: CRM, comércio eletrónico, contabilidade, gestão de inventário, ponto de venda, gestão de projetos, etc.

A proposta de valor única do Odoo é ser, ao mesmo tempo, muito fácil de utilizar e totalmente integrado.

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