Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
invoiceprintreportquotationodooV8
1 Reply
5102 Views
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
Discard
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
Discard
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
Translation not working for invoice report
invoice report odooV8
Avatar
Avatar
Avatar
5
Jan 20
9164
Invoice Report Multiple Journal Line Print Error Solved
print report odooV8
Avatar
Avatar
Avatar
3
Feb 19
4603
Strip string from a field with defined separator in invoice report Solved
invoice print custom report
Avatar
1
Mar 22
3386
Multiple report on one button click
qweb print report odooV8
Avatar
Avatar
Avatar
Avatar
6
Jan 20
8967
Issue in printing custom invoice report?
invoice print report odoo10
Avatar
Avatar
1
Aug 17
6700
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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