Help

0

Sort order_line in Physical Inventory basis on product default

Avatar
Sushant Patil

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
Discard
1 Answer
0
Best Answer

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

Avatar
Discard