Привет, что я пытаюсь сделать, это создать отчет в odoo 12, вот что я делаю:
сначала я создаю toxicwork_invoice / reports / 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_invoice / reports / invoice_card.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
Что я пропустил?