Hi everybody
I'm trying to figure out what is the correct way to create a new report in Odoo 8, but I don't get it 100% correct.
What I now have is the following..
sale/sale_report.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report
id="report_sale_order"
string="Quotation / Order"
model="sale.order"
report_type="qweb-pdf"
file="sale.report_saleorder"
name="sale.report_saleorder"
/>
<report
id="report_opleveringsattest_id"
string="Opleveringsattest"
model="res.partner"
report_type="qweb-pdf"
file="sale.report_opleveringsattest"
name="sale.report_opleveringsattest"
/>
</data>
</openerp>
sale/views/report_opleveringsattest.xml:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_opleveringsattest_document">
<t t-call="report.external_layout">
<div class="page">
<div class="oe_structure"/>
<div class="row">
<div class="col-xs-6">
<p>TEST</p>
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</template><template id="report_opleveringsattest">
<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', 'sale.report_opleveringsattest_document')"/>
</t>
</t>
</template>
</data>
</openerp>
But then I get the error "SyntaxError: JSON.parse: unexpected end of data at line 2 column 1 of the JSON data"..
Which then tells me
QWebTemplateNotFound: External ID not found in the system: sale.report_opleveringsattest
With kind regards
Yenthe