Skip to content

[16.0][FIX]pos_access_right: change deleteOrder to _onDeleteOrder #1368

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

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

adasatorres
Copy link
Contributor

I've noticed that the deleteOrder method in the TicketScreen component is no longer used in Odoo 16.0 — it has been renamed to _onDeleteOrder. https://github.com/odoo/odoo/blob/bfeab2559f9a0df8790322bac0fe3b2a09d3f9c9/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js#L108
After checking on Runboat, I also found that the permission intended to disable order deletion is currently not functioning as expected.
To improve maintainability and extensibility, I’ve restructured the code within the _onDeleteOrder method, making it easier to inherit and override in custom modules.

Copy link

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

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

Code Review. LGTM!

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-1368-by-legalsylvain-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0a11b3e into OCA:16.0 Apr 21, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 155ad2d. 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants