[DOC] report_xlsx: Update USAGE.rst

Stop using deprecated <report> tag.
This commit is contained in:
Adam Heinz
2024-04-16 13:48:14 -04:00
committed by GitHub
parent bb97a682e7
commit 6f063a7c19

View File

@@ -21,12 +21,13 @@ To manipulate the ``workbook`` and ``sheet`` objects, refer to the
A report XML record ::
<report
id="partner_xlsx"
model="res.partner"
string="Print to XLSX"
report_type="xlsx"
name="module_name.report_name"
file="res_partner"
attachment_use="False"
/>
<record id="action_report_partner_xlsx" model="ir.actions.report">
<field name="name">Print to XLSX</field>
<field name="model">res.partner</field>
<field name="report_type">xlsx</field>
<field name="report_name">module_name.report_name</field>
<field name="report_file">module_name.report_file</field>
<field name="binding_model_id" ref="mrp.model_mrp_production"/>
<field name="binding_type">report</field>
<field name="attachment_use" eval="False"/>
</record>