Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

Webkit Reports Tracebacks

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
v7webkitreportstraceback
3 Respostas
8031 Visualizações
Avatar
Dave Burkholder

I've installed the following modules in my OpenERP 7 server, running on Ubuntu 12.04.

account_financial_report_webkit
base_headers_webkit
invoice_webkit
report_webkit
sale_order_webkit

Unfortunately, I'm getting errors on every webkit report I try to print. Here are the trackebacks I'm getting:

#------------------------------------
Sales Order Report
#------------------------------------
Webkit render!

Traceback (most recent call last):
File "/opt/openerp/7.0/addons/report_webkit/webkit_report.py", line 278, in create_single_pdf
*self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 302, in render return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 660, in _render *
_kwargs_for_callable(callable_, data))
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 692, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 718, in _exec_template callable_(context, args, *kwargs)
File "memory:0x7f573c08b210", line 36, in render_body

File "/opt/openerp/7.0/server/openerp/osv/orm.py", line 486, in __getattr__ raise AttributeError(e)
AttributeError: "Field 'address' does not exist in object 'browse_record(res.partner, 1)'"

#------------------------------------
Customer Invoice
#------------------------------------
Webkit render!

Traceback (most recent call last):
File "/opt/openerp/7.0/addons/report_webkit/webkit_report.py", line 266, in create_single_pdf
**self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 302, in render return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 661, in _render return context._pop_buffer().getvalue()
File "/usr/lib/python2.7/dist-packages/mako/util.py", line 134, in getvalue
return self.delim.join(self.data).encode(self.encoding, self.errors)
TypeError: sequence item 233: expected string or Unicode, bool found

#------------------------------------
Supplier Invoice
#------------------------------------
Webkit render!

Traceback (most recent call last):
File "/opt/openerp/7.0/addons/report_webkit/webkit_report.py", line 266, in create_single_pdf
**self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 302, in render return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 661, in _render return context._pop_buffer().getvalue()
File "/usr/lib/python2.7/dist-packages/mako/util.py", line 134, in getvalue return self.delim.join(self.data).encode(self.encoding, self.errors)
TypeError: sequence item 163: expected string or Unicode, bool found

#------------------------------------

So, my webkit deployment is not going well at all. :-| Any suggestions for me?

0
Avatar
Cancelar
Dave Burkholder
Autor

Anybody? Anything?? Camptocamp, are you there?

Avatar
David Béal
Melhor resposta

Hello,

please choose this branch

https://code.launchpad.net/~sale-core-editors/sale-reports/7.0 (for v7)

instead of https://code.launchpad.net/~sale-core-editors/sale-reports/ (for v6.1)

The bug : AttributeError: "Field 'address' does not exist in object 'browse_record(res.partner, 1)'" prove that it is 6.1 version (not the same party model : 2 tables in v6.1, 1 for v7, no more field address in 'res.partner')

Do not remove rml

1
Avatar
Cancelar
Dave Burkholder
Autor

I am using the 7.0 branches. The contents of branch.conf for the sale-reports module: parent_location = http://bazaar.launchpad.net/~sale-core-editors/sale-reports/7.0/

The contents of branch.conf for the account-invoice-report module: parent_location = http://bazaar.launchpad.net/~account-core-editors/account-invoice-report/7.0/

Avatar
Reinhard Schneidewind
Melhor resposta

Hi,

I had a similar error when printing invoices. I could solve it with a change of the account_invoice.mako template. Search at the bottom of the file:

    %if inv.fiscal_position :
        <br/>
        <p class="std_text">
        ${inv.fiscal_position.note | n}
        </p>
    %endif

And replace it with the following code:

%if inv.fiscal_position and inv.fiscal_position.note :
    <br/>
    <p class="std_text">
    ${inv.fiscal_position.note | n}
    </p>
%endif

As you can see, I've added a further argument in the if statement. The attribute inv.fiscal_position.note seemed to return a boolean False.

Best regards,

Reinhard

0
Avatar
Cancelar
Avatar
Michael Meierhoff
Melhor resposta

I had the same problem.

The solution is to remove the selection in the check box "Add RML Header" under "Settings -> Technical -> Actions -> Reports" in the respective report.

It seems that Webkit Report and RML Header do not work together. You can select the Webkit header in the webkit tab.

0
Avatar
Cancelar
Dave Burkholder
Autor

I tried that and now get this traceback (abridged): File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 661, in _render return context._pop_buffer().getvalue() File "/usr/lib/python2.7/dist-packages/mako/util.py", line 134, in getvalue return self.delim.join(self.data).encode(self.encoding, self.errors) TypeError: sequence item 231: expected string or Unicode, bool found

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
Where to get sample reports for webkit in V7
v7 webkit reports
Avatar
Avatar
Avatar
2
mar. 15
7168
how to set 0 margins in webkit reports in v7?
v7 webkit reports
Avatar
Avatar
Avatar
2
mar. 15
6930
[7.0] Webkit Background
image v7 webkit reports
Avatar
Avatar
1
mar. 15
5641
Report not showing up
v7 reports
Avatar
1
mar. 15
6712
sale_order_webkit cann't be installed
webkit traceback
Avatar
0
mar. 15
4725
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • 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) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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