将默认发票报告更改为自定义报告?
change default invoice report to custom report?
在我的自定义模块中,我试图将默认发票报告更改为自定义报告。这是报告标签
<report
id="account.account_invoices"
model="account.invoice"
string="Invoice custom report"
report_type="qweb-pdf"
name="custom_invoice_report.custom_invoice_template"
file="custom_invoice_report.custom_invoice_template"
/>
我还在代码中定义了 <template id="custom_invoice_template">
。
但默认发票报告是 printed.How 要更改此自定义报告吗?
注意
我使用 id="account.account_invoices
加载发送邮件 attachment.The 发送邮件附件是基于此 id 加载的。
我们需要添加属性 attachment_use="False" 以加载新的报表更改。在发票报告中有 attachment_use="True" 意味着一旦我们打印报告,最后的输出将相同。
尝试使用以下代码:
<report
id="account.account_invoices"
model="account.invoice"
string="Invoice custom report"
report_type="qweb-pdf"
attachment_use="False"
name="custom_invoice_report.custom_invoice_template"
file="custom_invoice_report.custom_invoice_template"
/>
在我的自定义模块中,我试图将默认发票报告更改为自定义报告。这是报告标签
<report
id="account.account_invoices"
model="account.invoice"
string="Invoice custom report"
report_type="qweb-pdf"
name="custom_invoice_report.custom_invoice_template"
file="custom_invoice_report.custom_invoice_template"
/>
我还在代码中定义了 <template id="custom_invoice_template">
。
但默认发票报告是 printed.How 要更改此自定义报告吗?
注意
我使用 id="account.account_invoices
加载发送邮件 attachment.The 发送邮件附件是基于此 id 加载的。
我们需要添加属性 attachment_use="False" 以加载新的报表更改。在发票报告中有 attachment_use="True" 意味着一旦我们打印报告,最后的输出将相同。
尝试使用以下代码:
<report
id="account.account_invoices"
model="account.invoice"
string="Invoice custom report"
report_type="qweb-pdf"
attachment_use="False"
name="custom_invoice_report.custom_invoice_template"
file="custom_invoice_report.custom_invoice_template"
/>