嗨,我要做的是在odoo 12中创建报告,下面是我要做的:
首先,我创建toxicwork\u发票/报告/soreport.xml文件,代码如下所示:
<odoo>
<report
id="so_invoices"
model="salesorder.salesorder"
string="Invoices"
report_type="qweb-pdf"
name="salesorder.report_invoice"
file="salesorder.report_invoice"
/>
</odoo>
然后我创建toxicwork\u invoice/reports/invoice_卡片.xml,代码如下:
<odoo>
<template id="report_invoice_cards">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<h2>Faktur</h2>
</t>
</t>
</template>
<template id="report_invoice">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="report_invoice_cards"/>
</t>
</t>
</template>
</odoo>
但它给了我这样一个错误
raise ValueError('External ID not found in the system: %s' % xmlid) ValueError: External ID not found in the system: salesorder.report_invoice
我错过了什么?