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

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Conversation

amh-mw
Copy link
Contributor

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

Stop using deprecated report tag.

Stop using deprecated <report> tag.
@amh-mw
Copy link
Contributor 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
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 18, 2024
@pedrobaeza pedrobaeza added this to the 14.0 milestone Aug 19, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know why anybody has warned about this previously!?

Can you forward-port it to upper versions?

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-869-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 74c3ade into OCA:14.0 Aug 19, 2024
4 of 5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e88d22e. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged 🎉 stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants