Skip to Content
Menu
This question has been flagged
1 Odpoveď
2861 Zobrazenia

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
Zrušiť
Best Answer

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
júl 15
4509
11
sep 16
25538
2
jan 23
26559
4
jún 21
39586
1
dec 20
2757