Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

QWebTemplateNotFound Error when trying to run a very simple custom report

Subscribe

Get notified when there's activity on this post

This question has been flagged
QWebTemplateNotFound
1 Reply
5188 Views
Avatar
hesham@elmahdy.info

This is supposed to be a simpIe thing: Just add two more print buttons to drop down from print button of invoice screen and print any text; we'll modify it later. But strangely  I get an error and everyone seems to not find anything wrong with the code. Here goes:

 

I have added two more Invoice printing options in the print button of invoice form. When I click any of them it gives the fillowing error message:

 

You can download the module from here: https://www.dropbox.com/s/k6bukc058j4dxri/odootec_wed.tar.gz?dl=0

 

 

Odoo Client Error

Uncaught SyntaxError: Unexpected end of input

http://localhost:8069/web?debug=#id=1&view_type=form&model=account.invoice&menu_id=220&action=250:0

 

And the following error appears in ubuntu terminal:

2015-03-06 11:17:33,181 29418 ERROR devdb1 werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/home/hesham/odoo/openerp/service/server.py", line 281, in app
    return self.app(e, s)
  File "/home/hesham/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/home/hesham/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/home/hesham/odoo/openerp/http.py", line 1236, in __call__
    return self.dispatch(environ, start_response)
  File "/home/hesham/odoo/openerp/http.py", line 1210, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/home/hesham/odoo/openerp/http.py", line 1210, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/home/hesham/odoo/openerp/http.py", line 1377, in dispatch
    result = ir_http._dispatch()
  File "/home/hesham/odoo/openerp/addons/base/ir/ir_http.py", line 130, in _dispatch
    return self._handle_exception(e)
  File "/home/hesham/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception
    return request._handle_exception(exception)
  File "/home/hesham/odoo/openerp/http.py", line 617, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/hesham/odoo/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch
    result = request.dispatch()
  File "/home/hesham/odoo/openerp/http.py", line 635, in dispatch
    r = self._call_function(**self.params)
  File "/home/hesham/odoo/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/hesham/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/hesham/odoo/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/hesham/odoo/openerp/http.py", line 754, in __call__
    return self.method(*args, **kw)
  File "/home/hesham/odoo/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/home/hesham/odoo/addons/report/controllers/main.py", line 117, in report_download
    response = self.report_routes(reportname, docids=docids, converter='pdf')
  File "/home/hesham/odoo/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/home/hesham/odoo/addons/report/controllers/main.py", line 64, in report_routes
    pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context)
  File "/home/hesham/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/hesham/odoo/addons/report/models/report.py", line 186, in get_pdf
    html = self.get_html(cr, uid, ids, report_name, data=data, context=context)
  File "/home/hesham/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/hesham/odoo/addons/report/models/report.py", line 171, in get_html
    return self.render(cr, uid, [], report.report_name, docargs, context=context)
  File "/home/hesham/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/hesham/odoo/addons/report/models/report.py", line 147, in render
    return view_obj.render(cr, uid, template, values, context=context)
  File "/home/hesham/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/hesham/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1007, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/home/hesham/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/hesham/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/home/hesham/odoo/openerp/addons/base/ir/ir_qweb.py", line 190, in get_template
    raise QWebTemplateNotFound("Template %r not found" % name, template=origin_template)
QWebTemplateNotFound: Template u'odootec_wed.report_invoice_ban' not found

 

 

Here is the xml code of report_invoice_ban.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

    <template id="report_invoice_ban" inherit_id="account.report_invoice_document">

    </template>
</data>
</openerp>

Here is the xml code of report_invoice_wed.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

    <template id="report_invoice_ban" inherit_id="account.report_invoice_document">

    </template>

</data>
</openerp>

Here is the xml code of wed_invoice_reports.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
    <report
        id="account_invoices_ban"
        model="account.invoice"
        string="Invoice Ban"
        report_type="qweb-pdf"
        name="odootec_wed.report_invoice_ban"/>

    <report
        id="account_invoices_wed"
        model="account.invoice"
        string="Invoice Wed"
        report_type="qweb-pdf"
        name="odootec_wed.report_invoice_wed"/>

</data>
</openerp>

 

Your help is much appreciated

0
Avatar
Discard
Avatar
Vasanth
Best Answer

Hi Hesham,

For name="odootec_wed.report_invoice_ban"

you make sure that "odootec_wec" is your current module name.

instead of wiritng the report as in separate file, you can write as:

report_invoice_ban.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <openerp>
    <data>

        <template id="report_invoice_ban" inherit_id="account.report_invoice_document">

        </template>
         <report
        id="account_invoices_ban"
        model="account.invoice"
        string="Invoice Ban"
        report_type="qweb-pdf"
        name="odootec_wed.report_invoice_ban"/>
    </data>
    </openerp

report_invoice_wed.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <openerp>
    <data
        <template id="report_invoice_ban" inherit_id="account.report_invoice_document">

        </template>
       <report
        id="account_invoices_wed"
        model="account.invoice"
        string="Invoice Wed"
        report_type="qweb-pdf"
        name="odootec_wed.report_invoice_wed"/>

    </data>
    </openerp>

try this...All the best

0
Avatar
Discard
hesham@elmahdy.info
Author

Please explain more

hesham@elmahdy.info
Author

I tried. No difference. Problem still the same.

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
How to use my own template?
QWebTemplateNotFound
Avatar
Avatar
2
सित॰ 15
8868
QWebTemplateNotFound
QWebTemplateNotFound
Avatar
Avatar
3
अप्रैल 15
5242
500 Internal server error on shop/payment page Solved
error odooV8 QWebTemplateNotFound
Avatar
Avatar
1
फ़र॰ 16
7763
QWebException: "Invalid template id: 'header_foobar'" while evaluating "translate_doc(doc_id, doc_model, 'partner_id.lang', 'account.report_invoice_foobar_document')"
qweb reports odooV8 QWebTemplateNotFound
Avatar
0
नव॰ 22
7449
QWebTemplateNotFound: External ID not found in the system Solved
error qweb QWebException QWebTemplateNotFound
Avatar
Avatar
2
अप्रैल 15
12792
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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