Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1919 Visualizzazioni

Hi all

Odoo pos product list sequence ordered alphabetically, but not working with product variants.
I saw a related post https://www.odoo.com/forum/help-1/how-to-assign-product-order-display-in-pos-128544
Seems all paid modules about custom sequence, but odoo default alphabetically sequence not working correctly.

Avatar
Abbandona
Autore Risposta migliore

Hi all

i would like to share how i fixed the issue with small customization.
In custom code override "point_of_sale.ProductsWidget" (file ref:odoo15/addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductsWidget.js)

return list.sort(function (a, b) { return a.display_name.localeCompare(b.display_name) });
To
return list.sort(function (a, b) { return a.display_name.localeCompare(b.display_name, undefined, {numeric: true,sensitivity: 'base'}) });

This will make the product variant sequence fine in pos.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 24
2774
0
gen 23
9
0
nov 22
2920
1
nov 22
2907
2
lug 22
2505