Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2835 Zobrazení

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
Zrušit
Nejlepší odpověď

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 15
4458
11
zář 16
25483
2
led 23
26476
4
čvn 21
39541
1
pro 20
2733