Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

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

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
errorprintprintingsyntax
7 Odpowiedzi
18062 Widoki
Awatar
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
Awatar
Odrzuć
Awatar
Tintumon
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
Dhiraj Palekar
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
Ludo - 21South
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
Michael Egierski
Autor Najlepsza odpowiedź

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
Awatar
Odrzuć
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!

Awatar
imad
Najlepsza odpowiedź

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
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Odoo 8 Error printing all reports.
error print
Awatar
Awatar
1
cze 16
4167
Is their any simple way to Print reports directly instead of saving First ? Rozwiązane
printer print printing
Awatar
Awatar
Awatar
Awatar
Awatar
8
maj 25
44156
How to solve printing error of sales quotation template and invoice template?
error print odoo16features
Awatar
0
mar 23
2870
Studio report throws EOF error at print time
error print Studio
Awatar
Awatar
1
sie 22
2871
How can we add a function call at print time?
print printing v14
Awatar
Awatar
1
mar 21
5316
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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