跳至內容
選單
此問題已被標幟
1 回覆
2957 瀏覽次數

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
4632
11
9月 16
25748
2
1月 23
26878
4
6月 21
39818
1
12月 20
2858