Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4462 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Peter,

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

_order = 'name asc'
Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează

i checked it, it is working properly for me

Autor

Nope.. it does not.

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

Autor

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

Related Posts Răspunsuri Vizualizări Activitate
0
ian. 21
1771
1
iun. 25
593
2
apr. 25
989
0
ian. 25
1006
1
dec. 24
2419