Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2837 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
4464
11
sep. 16
25487
2
jan. 23
26482
4
jun. 21
39547
1
dec. 20
2740