コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4474 ビュー

Hi

Pricelists are not sorted by product name. It looks like they are sorted by row id (order of insertion). According to the product_pricelist.py it is sorted by _order = "applied_on, min_quantity desc, categ_id desc, id" But how do I change it so it is sorted by product names.

アバター
破棄
最善の回答

Hi Peter,

For the getting the view according to sort order of the product you can give like this,

_order = 'name asc'
アバター
破棄
著作者 最善の回答

Hi Niyas

I tried that. It does not work as expected. Maybe because name is a computed field.

However, setting _order to product_id give me order by SKU which is better than insert order. But I would still love to figure out how to sort by product/variant name.

アバター
破棄

i checked it, it is working properly for me

著作者

Nope.. it does not.

A lot of the products are sorted correct. But not all.

著作者

I am using a lot of fixed prices for product variants and a few product also with fixed price. But sort by name does not work. (here..)

関連投稿 返信 ビュー 活動
0
1月 21
1775
1
6月 25
604
2
4月 25
1013
0
1月 25
1012
1
12月 24
2435