跳至内容
菜单
此问题已终结
1 回复
2843 查看

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
4495
11
9月 16
25502
2
1月 23
26517
4
6月 21
39559
1
12月 20
2748