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

Hello all

I want to sort lines on product  'default code' 
When we click on fill inventory and select location then All product list appear so I want to sort that basis on default code 

Thanks

아바타
취소
베스트 답변

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

    default_code = fields.Char('Internal Reference', index=True)

아바타
취소
관련 게시물 답글 화면 활동
1
7월 15
4752
11
9월 16
25967
2
1월 23
27273
4
6월 21
40034
1
12월 20
3009