Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

QWebException: "Invalid template id: 'header_foobar'" while evaluating "translate_doc(doc_id, doc_model, 'partner_id.lang', 'account.report_invoice_foobar_document')"

By
E.M.
on 9/17/15, 9:17 AM 779 views

I have defined a new invoice report through GUI which works fine:


<?xml version="1.0"?>
<t t-name="account.report_invoice_foobar_document">
<t t-call="header_foobar">
<div class="page">
...


I also define a new QWeb through GUI and name it header_foobar:


<header>
<pageTemplate>
<frame id="first" x1="1.3cm" y1="3.0cm" height="21.7cm" width="19.0cm"/>
...


However I can't call that header_foobar template from account.report_invoice_foobar_document.

I have also tried to configure an external ID, maybe I am missing something.

Any tip or suggestion is really welcomed. thanks

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/17/15, 9:17 AM
Seen: 779 times
Last updated: 5/18/16, 4:18 AM