跳至内容
菜单
此问题已终结
1 回复
1955 查看

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.

形象
丢弃
编写者 最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
1
7月 24
2859
0
1月 23
9
0
11月 22
2988
1
11月 22
2946
2
7月 22
2576