Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3009 Weergaven

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
Annuleer
Beste antwoord

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 15
4727
11
sep. 16
25907
2
jan. 23
27182
4
jun. 21
39986
1
dec. 20
2972