Odoo 14.0 จากการเปลี่ยนแปลงในรายงาน
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>