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
    • Artificial Intelligence
    • 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
    • Property 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
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

Error when printing PDF documents (RPC_ERROR)

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo16features
1 Reply
2000 Views
Avatar
Mahelet Ruth Iturbide Martinez

When I try to print a PDF in all modules (except for sales where it prints normally) it shows the this error:

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "", line 409, in template_200

  File "", line 234, in template_200_content

KeyError: 'doc'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/saas-16.4/addons/web/controllers/re port.py", line 113, in report_download

    response = self.report_routes(reportname, docids=docids, converter=converter, context=context)

  File "/home/odoo/src/odoo/saas-16.4/odoo/ht tp.py", line 717, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/home/odoo/src/odoo/saas-16.4/addons/web/controllers/report. py", line 42, in report_routes

    pdf = report.with_context(context)._render_qweb_pdf(reportname, docids, data=data)[0]

  File "/home/odoo/src/odoo/saas-16.4/addons/account/models/ir_actions_repo rt.py", line 61, in _render_qweb_pdf

    return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)

  File "/home/odoo/src/odoo/saas-16.4/odoo/addons/base/models/ir_actions_r eport.py", line 849, in _render_qweb_pdf

    collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

  File "/home/odoo/src/enterprise/saas-16.4/account_followup/models/ir_action s_report.py", line 12, in _render_qweb_pdf_prepare_streams

    res = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids)

  File "/home/odoo/src/odoo/saas-16.4/addons/account_edi/models/ir_actions _report.py", line 14, in _render_qweb_pdf_prepare_streams

    collected_streams = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

  File "/home/odoo/src/odoo/saas-16.4/addons/account/models/ir_actions_r eport.py", line 20, in _render_qweb_pdf_prepare_streams

    return super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

  File "/home/odoo/src/odoo/saas-16.4/odoo/addons/base/models/ir_actions_ report.py", line 699, in _render_qweb_pdf_prepare_streams

    html = self.with_context(**additional_context)._render_qweb_html(report_ref, res_ids_wo_stream, data=data)[0]

  File "/home/odoo/src/enterprise/saas-16.4/web_studio/models/ir_actions_re port.py", line 24, in _render_qweb_html

    return super(IrActionsReport, self)._render_qweb_html(report_ref, docids, data)

  File "/home/odoo/src/odoo/saas-16.4/odoo/addons/base/models/ir_actions_rep ort.py", line 898, in _render_qweb_html

    return self._render_template(report.report_name, data), 'html'

  File "/home/odoo/src/odoo/saas-16.4/odoo/addons/base/models/ir_act ions_report.py", line 614, in _render_template

    return view_obj._render_template(template, values).encode()

  File "/home/odoo/src/odoo/saas-16.4/addons/website/models/ir_ui_view .py", line 441, in _render_template

    return super()._render_template(template, values=values)

  File "/home/odoo/src/enterprise/saas-16.4/web_studio/models/ir_ui_vi ew.py", line 1299, in _render_template

    return super(View, self)._render_template(template, values)

  File "/home/odoo/src/odoo/saas-16.4/odoo/addons/base/models/ir_ui_vi ew.py", line 2154, in _render_template

    return self.env['ir.qweb']._render(template, values)

  File "/home/odoo/src/odoo/saas-16.4/odoo/tools/profiler.py", line 292, in _tracked_method_render

    return method_render(self, template, values, **options)

  File "/home/odoo/src/odoo/saas-16.4/odoo/addons/base/models/ir_qweb.py", line 584, in _render

    result = ''.join(rendering)

  File "", line 80, in template_4995

  File "", line 62, in template_4995_content

  File "", line 50, in template_4995_t_call_0

  File "", line 555, in template_4996

  File "", line 544, in template_4996_content

  File "", line 97, in template_204

  File "", line 72, in template_204_content

  File "", line 415, in template_200

odoo.addons.base.models.ir_qweb.QWebException: Error while render the template

KeyError: 'doc'

Template: web.external_layout_striped

Path: /t/div[1]/div/div[3]/h4/span

Node:


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    at makeErrorFromResponse (https://tractoclimas.o doo.com/web/assets/3000-0dbafd9/web.assets_backend.min.js:1361:163)

    at decoder.onload (https://tractoclimas.o doo.com/web/assets/3000-0dbafd9/web.assets_backend.min.js:1349:7)

0
Avatar
Discard
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

It seems you are using odoo online, did you made any changes any of the report layout ? If yes, just revert the recent changes you made and see, if it makes any difference.

Still if the issue is not getting resolved, create a ticket in:  https://www.odoo.com/help

Thanks

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
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Solved
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
Sep 25
27620
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
Aug 25
4679
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
May 25
4463
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
Apr 25
5423
How to add decoration color green with bold to a record with a single conditon
odoo16features
Avatar
Avatar
1
Apr 25
6309
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 Svenska ภาษาไทย 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