odoo/odoo#126782

Created by fw-bot
Error: Unable to stage PR
label
odoo-dev:master-16.0-pos-loading-product-request-rhe-83kD-fw
head
9ea335fa4a997bcaa2e33aa3939a82c8a1415f62
target
master
forward-port of
odoo/odoo#124223

[FW][FIX] point_of_sale: load product requests

When the pos was loading only a part of the products, the request should follow those rules order:
- product is a favorite
- product is a service
- product had stock moves soon
- product update

But this request didn't take into account consumables products and if there was no stock move, the value was null and postgres consider null values first when ordering desc. Now with that changes, the order is correctly set based on the rules above.

---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: odoo/odoo#124350
Forward-Port-Of: odoo/odoo#124223