コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2882 ビュー

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
4541
11
9月 16
25577
2
1月 23
26618
4
6月 21
39617
1
12月 20
2777