Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4491 Näkymät

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.

Avatar
Hylkää
Paras vastaus

Hi Peter,

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

_order = 'name asc'
Avatar
Hylkää
Tekijä Paras vastaus

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.

Avatar
Hylkää

i checked it, it is working properly for me

Tekijä

Nope.. it does not.

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

Tekijä

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..)

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
tammik. 21
1805
1
kesäk. 25
640
2
huhtik. 25
1038
0
tammik. 25
1038
1
jouluk. 24
2456