Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3010 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
4728
11
sep. 16
25909
2
jan. 23
27182
4
jun. 21
39986
1
dec. 20
2973