콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4651 화면

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
1916
1
6월 25
884
2
4월 25
1339
0
1월 25
1241
1
12월 24
2718