[FW][FIX] point_of_sale: order categories and sub-categories based on server order
Problem: When sub-categories are sorted by ID in the PoS app, the order from the server is lost, which disrupts the intended category hierarchy. The expected behavior is that sub-categories appear immediately next to their parent, while preserving the server-defined order for all child categories.
Steps to reproduce:
- Create PoS categories with multiple levels of sub-categories.
- Sort them in the backend list.
- The same order should be preserved in the PoS app.
opw-4212470
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#182268
@walidsahli @caburj cherrypicking of pull request odoo/odoo#182268 failed.
stdout:
Auto-merging addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js
Auto-merging addons/point_of_sale/static/tests/tours/product_screen_tour.js
CONFLICT (content): Merge conflict in addons/point_of_sale/static/tests/tours/product_screen_tour.js
Auto-merging addons/point_of_sale/tests/test_frontend.py
CONFLICT (content): Merge conflict in addons/point_of_sale/tests/test_frontend.py
Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).
In the former case, you may want to edit this PR message as well.
:warning: after resolving this conflict, you will need to merge it via @robodoo.
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port
@robodoo r+
