تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4468 أدوات العرض

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
يناير 21
1773
1
يونيو 25
601
2
أبريل 25
1001
0
يناير 25
1007
1
ديسمبر 24
2426