Odoo 14.0 Report Fromat Change
Report Format Changes in V 14.0 Odoo
Probuse Admin
Warning if you follow old syntax of V13.0:
============================================================================================
The <report> tag is deprecated, use a <record> tag for 'action_report_production_order_cost'.
warnings.warn(f"The <report> tag is deprecated, use a <record> tag for {xml_id!r}.", DeprecationWarning)
warnings.warn(f"The <report> tag is deprecated, use a <record> tag for {xml_id!r}.", DeprecationWarning)
Old Format of report :(V. 13.0 )
==============================================================================================
<report
string="Production Order Cost"
id="action_report_production_order_cost"
model="mrp.production"
name="odoo_process_costing_manufacturing.report_mrporder_cost"
file="odoo_process_costing_manufacturing.report.report_mrporder_cost"
report_type="qweb-pdf"
/>
string="Production Order Cost"
id="action_report_production_
model="mrp.production"
name="odoo_process_costing_
file="odoo_process_costing_
report_type="qweb-pdf"
/>
New Format of Report (V. 14.0 ):
==============================================================================================
<record id="action_report_production_order_cost" model="ir.actions.report">
<field name="name">Production Order Cost</field>
<field name="model">mrp.production</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">odoo_process_costing_manufacturing.report_mrporder_cost</field>
<field name="report_file">odoo_process_costing_manufacturing.report_mrporder_cost</field>
<field name="binding_model_id" ref="mrp.model_mrp_production"/>
<field name="binding_type">report</field>
</record>
<field name="name">Production Order Cost</field>
<field name="model">mrp.production</
<field name="report_type">qweb-pdf</
<field name="report_name">odoo_
<field name="report_file">odoo_
<field name="binding_model_id" ref="mrp.model_mrp_production"
<field name="binding_type">report</
</record>