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

OpenERP Client Error - Uncaught SyntaxError: Unexpected end of input // What does that mean?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
errorprintprintingsyntax
7 Respostas
18058 Visualizações
Avatar
Michael Egierski

Hello,

I have created a sales report with OpenOffice Report Designer and uploaded it to the server. When choosing this template in the "Print" menu, I get this error message:

OpenERP Client Error - Uncaught SyntaxError: Unexpected end of input

-----------------------------------------------------------------------------------------------------------------------------------------------

http://192.168.0.7:8069/?ts=1409059791570#id=4&view_type=form&model=sale.order&action=348:0

 

Could anyone tell me what this error exactly means? Could there anything be not right with the python syntax?

 

Greetings and thanks in advance.

Michael

1
Avatar
Cancelar
Avatar
Tintumon
Melhor resposta

If you haven't installed "wkhtmltopdf" it'll throw an error like this.

I have also faced the same error and I resolved it after installing wkhtmltopdf

Open Terminal and install:

sudo apt-get install wkhtmltopdf

Then  try it, report will be generated and PDF will get downloaded.

1
Avatar
Cancelar
Avatar
Dhiraj Palekar
Melhor resposta

If anyone is still wondering how to fix it:

Step 1: As Tintu said, please check if you have wkhtmltopdf installed. 

Else install it using: sudo apt-get install wkhtmltopdf

If that doesn't fix the problem:

Step 2: Please check the web.base.url paramter in Settings>>Parameters>> Sytem Parameters
And confirm it with the ip/domain of your server on which your odoo is running.

Once done. you should be able to print/ download the documents. Hope it helps. Thanks.



0
Avatar
Cancelar
Avatar
Ludo - 21South
Melhor resposta

This could currently be any syntax error. Have you got the stacktrace from the logs? Might be easier to track down the error using those logs.

0
Avatar
Cancelar
Avatar
Michael Egierski
Autor Melhor resposta

Hello Ludo,

the log file states a lot of errors of this types:

2014-09-09 09:37:06,801 24234 ERROR ubisys openerp.tools.safe_eval: Cannot eval "not show_discount(user.id) and removeParentNode('para')"
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/tools/safe_eval.py", line 285, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'show_discount' is not defined

 

2014-09-09 09:37:06,801 24234 WARNING ubisys openerp.report.render.rml2pdf.utils: rml_except: "not show_discount(user.id) and removeParentNode('para')"
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/report/render/rml2pdf/utils.py", line 76, in _child_get
    eval(n.get('rml_except'), {}, self.localcontext)
  File "/usr/lib/pymodules/python2.7/openerp/tools/safe_eval.py", line 285, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'show_discount' is not defined

 

2014-09-09 09:37:06,816 24234 ERROR ubisys openerp.tools.safe_eval: Cannot eval "show_discount(user.id) and formatLang(line.discount, digits=get_digits(dp='Discount')) or ''"
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/tools/safe_eval.py", line 285, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'show_discount' is not defin

 

2014-09-09 09:37:06,905 24234 ERROR ubisys openerp.service.web_services: Exception: can't find frame('Firmendaten') in <reportlab.platypus.doctemplate.PageTemplate instance at 0x7fd668ed1cb0>(None) which has frames [(<reportlab.platypus.frames.Frame instance at 0x7fd668ed15a8>, u'first')]
handle_currentFrame args=('Firmendaten', 0)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 712, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/usr/lib/pymodules/python2.7/openerp/report/report_sxw.py", line 442, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/usr/lib/pymodules/python2.7/openerp/report/report_sxw.py", line 511, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/usr/lib/pymodules/python2.7/openerp/report/report_sxw.py", line 533, in create_single_pdf
    pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
  File "/usr/lib/pymodules/python2.7/openerp/report/interface.py", line 206, in create_pdf
    obj.render()
  File "/usr/lib/pymodules/python2.7/openerp/report/render/render.py", line 59, in render
    self._result = self._render()
  File "/usr/lib/pymodules/python2.7/openerp/report/render/rml.py", line 41, in _render
    return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
  File "/usr/lib/pymodules/python2.7/openerp/report/render/rml2pdf/trml2pdf.py", line 1032, in parseNode
    r.render(fp)
  File "/usr/lib/pymodules/python2.7/openerp/report/render/rml2pdf/trml2pdf.py", line 328, in render
    pt_obj.render(el)
  File "/usr/lib/pymodules/python2.7/openerp/report/render/rml2pdf/trml2pdf.py", line 1012, in render
    self.doc_tmpl.build(fis)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 890, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 767, in handle_flowable
    f.apply(self)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 145, in apply
    annotateException("\nhandle_%s args=%s"%(action,ascii(args)))
  File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 1337, in annotateException
    rl_reraise(t,v,b)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 138, in apply
    getattr(doc,arn)(*args)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 686, in handle_currentFrame
    self.handle_nextFrame(fx,resume)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 678, in handle_nextFrame
    raise ValueError("can't find frame('%s') in %r(%s) which has frames %r"%(fx,self.pageTemplate,self.pageTemplate.id,[(f,f.id) for f in self.pageTemplate.frames]))
ValueError: can't find frame('Firmendaten') in <reportlab.platypus.doctemplate.PageTemplate instance at 0x7fd668ed1cb0>(None) which has frames [(<reportlab.platypus.frames.Frame instance at 0x7fd668ed15a8>, u'first')]
handle_currentFrame args=('Firmendaten', 0)

 

0
Avatar
Cancelar
Michael Egierski
Autor

I think I got this problem solved. There's been a frame in my document, that OO had obviously problems to handle with. I moved the frame content into a table instead, and now I can print the report.

Ludo - 21South

Looks like it from the logs as well. Glad to hear you solved it!

Avatar
imad
Melhor resposta

hello,

when i want to print a client interface with another option by using jasper report(model res partner) i found this error

Odoo Erreur (côté interface)

Uncaught SyntaxError: Unexpected end of input

http://localhost:8069/web#id=7&view_type=form&model=res.partner&menu_id=193&action=61:0

can you help me.thnks

0
Avatar
Cancelar
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
Odoo 8 Error printing all reports.
error print
Avatar
Avatar
1
jun. 16
4167
Is their any simple way to Print reports directly instead of saving First ? Resolvido
printer print printing
Avatar
Avatar
Avatar
Avatar
Avatar
8
mai. 25
44155
How to solve printing error of sales quotation template and invoice template?
error print odoo16features
Avatar
0
mar. 23
2870
Studio report throws EOF error at print time
error print Studio
Avatar
Avatar
1
ago. 22
2870
How can we add a function call at print time?
print printing v14
Avatar
Avatar
1
mar. 21
5315
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