Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2827 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 15
4457
11
wrz 16
25474
2
sty 23
26475
4
cze 21
39539
1
gru 20
2731