Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2849 Prikazi

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

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 15
4505
11
sep. 16
25515
2
jan. 23
26545
4
jun. 21
39572
1
dec. 20
2753