Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

QWebTemplateNotFound: External ID not found in the system while printing

Subscriure's

Get notified when there's activity on this post

This question has been flagged
qwebexternalidexternalidexternal_id
2 Respostes
7036 Vistes
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
Descartar
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
Descartar
Avatar
corey fanton
Autor Best Answer

thanks for the answer

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

0
Avatar
Descartar
Zbik

change similar file=

corey fanton
Autor

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!

Registrar-se
Related Posts Respostes Vistes Activitat
Qweb external ID always change Solved
qweb externalid
Avatar
Avatar
1
de nov. 19
4015
'No such external ID currently defined in the system' while installing a new module
external id
Avatar
0
de 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
de març 15
4618
external id not found error odoo17
qweb reports external_id v17
Avatar
Avatar
1
d’abr. 24
5516
self.env.ref() external id of a model Solved
externalid external_id v14 ref
Avatar
1
de març 21
22322
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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