Skip to Content
Menu
This question has been flagged
1 Reply
1993 Views

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

Avatar
Discard
Best Answer

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 15
3575
11
Sep 16
23546
2
Jan 23
23781
4
Jun 21
37400
1
Dec 20
1488