Я создал отчет qweb для account.invoice модель в ODOO.Установить собственное имя в отчет QWeb в ODOO
Проблема:
В то время как мы загружаем отчет в формате PDF, что названный как module_name.report_name как в моем случае это
"custom_reports_ept.report_export_invoice".
То, что я хочу сделать, это установить загружаемое имя в формате PDF для «Экспорт Счет» или «Счет VDG290-15-16» (VDG290-15-16 это номер счета)».
Как я мог это сделать?
Вот мой XML-код,
<report
string="Export Invoice"
id="account.invoice_export"
model="account.invoice"
report_type="qweb-pdf"
name="custom_reports_ept.report_export_invoice"
file="custom_reports_ept.report_export_invoice"
/>
Вот шаблон Qweb.
<template id="report_export_invoice">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<div class="page">
<div class="oe_structure"/>
<!-- report body -->
</div>
</t>
</t>
</template>