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

QWebTemplateNotFound: External ID not found in the system while printing

Subscribe

Get notified when there's activity on this post

This question has been flagged
qwebexternalidexternalidexternal_id
2 Replies
7032 Views
Avatar
corey fanton

Hello !

i have this message when i try to print a report :

QWebTemplateNotFound: External ID not found in the system: manage_candidates.report_candidates

my code :

in view/candidates.xml

...

<report           

id="report_candidates"           

model="manage_candidates.candidate"           

string="Liste des candidates"           

report_type="qweb-pdf"           

name="manage_candidates.report_candidates"           

file="manage_candidates.report_candidates"           

attachment_use="True"

/>


In candidate_report.py :

from openerp import api, models
class ParticularReport(models.AbstractModel):
    _name = 'report.manage_candidates.report_candidate'   

@api.multi   

def render_html(self, data=None):
        report_obj = self.env['report']

report = report_obj._get_report_from_name('manage_candidates.report_candidate')       

docargs = {           

'doc_ids': self._ids,           

'doc_model': report.model,           

'docs': self,        }

return report_obj.render('manage_candidates.report_candidate', docargs)


in template_candidates_report :

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

<!--Custom report.-->
<openerp> 

   <data> 

       <!-- translate template --> 

       <template id="report_candidate_document">  

          <t t-call="report.external_layout">

            </t>

        </template>


<!-- main template -->

        <template id="report_candidate">  

          <t t-call="report.html_container">  

              <t t-foreach="doc_ids" t-as="doc_id">      

              <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang','manage_candidates.report_candidate_document')"/>

          </t>     

       </t>       

</template>   

</data>

</openerp>



in __openerp__.py

'data':
    [    

       "views/template_jury_report.xml", 

       'views/template_candidates_report.xml', 

       'templates.xml',     

       'views/menu.xml',   

       'views/candidate.xml',  

       'views/jury.xml',       

       'views/teacher.xml',      

       'views/interview.xml',   

       'views/classroom.xml',     

       'views/configuration.xml',          

       'demo/candidate_data.xml', 

       'demo/teacher_data.xml',

       'demo/jury_data.xml',

       'demo/config_data.xml', 

       'demo/classroom_data.xml',
    ],


int __init__.py :

# -*- coding: utf-8 -*-
import controllers

import teacher

import jury

import candidate

import interview

import classroom

import configuration

import candidates_report

import jury_report



0
Avatar
Discard
Avatar
Zbik
Best Answer

Probably the error is in view/candidates.xml.

Replace name="manage_candidates.report_candidates"

by name="manage_candidates.report_candidate"


0
Avatar
Discard
Avatar
corey fanton
Author Best Answer

thanks for the answer

i changed the name but it still doesnt work :( same error

0
Avatar
Discard
Zbik

change similar file=

corey fanton
Author

whish ones ?

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
Qweb external ID always change Solved
qweb externalid
Avatar
Avatar
1
Nov 19
4015
'No such external ID currently defined in the system' while installing a new module
external id
Avatar
0
Mar 15
3940
How can i solve this: The module restaurant_pos is openerp 6.1. But i need to change it so i can use it on openerp 7. Any Help?
external id
Avatar
0
Mar 15
4618
external id not found error odoo17
qweb reports external_id v17
Avatar
Avatar
1
Apr 24
5516
self.env.ref() external id of a model Solved
externalid external_id v14 ref
Avatar
1
Mar 21
22320
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