Skip to Content
मेन्यू
This question has been flagged
1 Reply
2952 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
जुल॰ 15
4629
11
सित॰ 16
25745
2
जन॰ 23
26845
4
जून 21
39750
1
दिस॰ 20
2846