Skip to Content
Menu
This question has been flagged
1 Atsakyti
2909 Rodiniai

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

Portretas
Atmesti
Best Answer

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 15
4552
11
rugs. 16
25637
2
saus. 23
26665
4
birž. 21
39640
1
gruod. 20
2799