Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2919 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

class product_product(models.Model):

    _inherit = 'product.product'

    _order = 'default_code'

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 15
4582
How to convert number to word in oddo? แก้ไขแล้ว
11
ก.ย. 16
25652
Syntax of domains - operators แก้ไขแล้ว
2
ม.ค. 23
26695
4
มิ.ย. 21
39660
1
ธ.ค. 20
2811