Skip to Content
Menú
This question has been flagged
1 Respondre
2933 Vistes

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
Descartar
Best Answer

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 15
4606
11
de set. 16
25709
2
de gen. 23
26765
4
de juny 21
39691
1
de des. 20
2827