Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][DOC] report_xlsx: Update USAGE.rst #869

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from
Open

Conversation

amh-mw
Copy link

@amh-mw amh-mw commented Apr 16, 2024

Stop using deprecated report tag.

Stop using deprecated <report> tag.
@amh-mw
Copy link
Author

amh-mw commented Apr 16, 2024

See https://probuse.com/blog/odoo-code-hints-19/post/odoo-14-0-report-fromat-change-957

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)

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"
        />

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>

@amh-mw amh-mw changed the title [DOC] report_xlsx: Update USAGE.rst [14.0][DOC] report_xlsx: Update USAGE.rst Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant