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
    Food & Hospitality
    • 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
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et 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
    Browse all 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
    • Devenez partenaire
    • Services for Partners
    • 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

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
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

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

S'inscrire

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

Cette question a été signalée
errorprintprintingsyntax
7 Réponses
18057 Vues
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
Ignorer
Avatar
Tintumon
Meilleure réponse

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
Ignorer
Avatar
Dhiraj Palekar
Meilleure réponse

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
Ignorer
Avatar
Ludo - 21South
Meilleure réponse

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
Ignorer
Avatar
Michael Egierski
Auteur Meilleure réponse

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
Ignorer
Michael Egierski
Auteur

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
Meilleure réponse

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
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é
Odoo 8 Error printing all reports.
error print
Avatar
Avatar
1
juin 16
4167
Is their any simple way to Print reports directly instead of saving First ? Résolu
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
mars 23
2870
Studio report throws EOF error at print time
error print Studio
Avatar
Avatar
1
août 22
2870
How can we add a function call at print time?
print printing v14
Avatar
Avatar
1
mars 21
5315
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
  • Devenez 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 ภาษาไทย 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