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

hello,


In stock module, I have 'inventory control' -> 'products'; when switched to list view I can see list as on pisture attached. Problem I have is that I can sort the list using for example 'product type' column (marked green), but cannot sort using 'quantity on hand' nor 'forecasted quantity'. View name used for the list is 'product.template.product.tree'; column 'quantity on hand' and 'forecasted quantity' are inherited from other, 'product.template.stock.tree.inherit'.

How to make fields marked in red on picture, labeled as:

<field name="qty_available"/>

<field name="virtual_available"/>

to be sortable?


regards

Tomasz

아바타
취소
베스트 답변

That fields are compute fields. By default, they are not stored at database, so you cant sort products by that fields.

You can set them store="True" and thats make it possible to sort on qty on hand of forecast

아바타
취소

Indeed, and yet, the more computed fields are in tree view, the more it takes to be fully charged. You should use them wisely.

작성자 베스트 답변

 


..and picture attached.
아바타
취소
관련 게시물 답글 화면 활동
Sticky Field 해결 완료
1
11월 19
3663
0
1월 25
1
0
7월 24
1164
3
5월 16
5655
2
12월 22
7521