Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

report.external_layout lost unable to print quotation/invoices Odoo 8

Naroči se

Get notified when there's activity on this post

This question has been flagged
invoiceprintreportquotationodooV8
1 Odgovori
4923 Prikazi
Avatar
José Carlos

Hello,


I am having an issue with Odoo 8, When I try to print a quotation or an invoice I get this error everytime. Is it possible to know where I can check in the settings the report, and if it is a template that I can use to add in Odoo?


Error details:


Error "Template 'report.external_layout' not found" while evaluating

"translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"


Qweb error message:

Could not evaluate expression "translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"


Traceback

Traceback (most recent call last):

  File "/opt/odoo/addons/website/models/ir_http.py", line 204, in _handle_exception

    response = super(ir_http, self)._handle_exception(exception)

  File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception

    return request._handle_exception(exception)

  File "/opt/odoo/openerp/http.py", line 618, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch

    result = request.dispatch()

  File "/opt/odoo/openerp/http.py", line 636, in dispatch

    r = self._call_function(**self.params)

  File "/opt/odoo/openerp/http.py", line 295, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/openerp/service/model.py", line 113, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/openerp/http.py", line 292, in checked_call

    return self.endpoint(*a, **kw)

  File "/opt/odoo/openerp/http.py", line 755, in __call__

    return self.method(*args, **kw)

  File "/opt/odoo/openerp/http.py", line 388, in response_wrap

    response = f(*args, **kw)

  File "/opt/odoo/addons/report/controllers/main.py", line 62, in report_routes

    html = report_obj.get_html(cr, uid, docids, reportname, data=options_data, context=context)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/addons/report/models/report.py", line 171, in get_html

    return self.render(cr, uid, [], report.report_name, docargs, context=context)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/addons/report/models/report.py", line 147, in render

    return view_obj.render(cr, uid, template, values, context=context)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 172, in render

    return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/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 "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/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 "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

    g_inner.append(self.render_node(current_node, qwebcontext))

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 426, in render_tag_call

    d[0] = self.render_element(element, template_attributes, generated_attributes, d)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

    g_inner.append(self.render_node(current_node, qwebcontext))

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 416, in render_tag_foreach

    ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext))

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

    g_inner.append(self.render_node(current_node, qwebcontext))

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 361, in render_tag_raw

    inner = self.eval_str(template_attributes["raw"], qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 205, in eval_str

    val = self.eval(expr, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 197, in eval

    raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 194, in eval

    return qwebcontext.safe_eval(expr)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 80, in safe_eval

    return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)

  File "/opt/odoo/openerp/tools/safe_eval.py", line 313, in safe_eval

    return eval(c, globals_dict, locals_dict)

  File "", line 1, in <module>

  File "/opt/odoo/addons/report/models/report.py", line 131, in translate_doc

    return view_obj.render(cr, uid, template, qcontext, context=ctx)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 172, in render

    return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/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 "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/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 "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

    g_inner.append(self.render_node(current_node, qwebcontext))

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_call

    return self.render(cr, uid, template, d)

  File "/opt/odoo/openerp/api.py", line 237, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/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 "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 190, in get_template

    raise QWebTemplateNotFound("Template %r not found" % name, template=origin_template)

QWebException: "Template 'report.external_layout' not found" while evaluating

"translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"


Many thanks.

José Carlos

0
Avatar
Opusti
Avatar
Anup Chavda
Best Answer

It can be two reasons for this.

1. Either the record has been deleted and you're trying to access.

So you can directly check in the database whether it exists or not.

Apart from this please go to Settings/Technical/Parameters/System Parameters.

Do you have a parameter called web.base.url if not add this parameter as key=web.base.url and value=your ip:port for e.g. 10.42.0.3:8090


0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Translation not working for invoice report
invoice report odooV8
Avatar
Avatar
Avatar
5
jan. 20
9071
Invoice Report Multiple Journal Line Print Error Solved
print report odooV8
Avatar
Avatar
Avatar
3
feb. 19
4498
Strip string from a field with defined separator in invoice report Solved
invoice print custom report
Avatar
1
mar. 22
3269
Multiple report on one button click
qweb print report odooV8
Avatar
Avatar
Avatar
Avatar
6
jan. 20
8846
Issue in printing custom invoice report?
invoice print report odoo10
Avatar
Avatar
1
avg. 17
6615
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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