How can I create a sequence in tree view automatically in the sequence field as attached picture link? A sequence can be an integer field like 1,2,3 and so on...
https://drive.google.com/file/d/1Fv--oCEiQFyZTO5CMHc9RjQrap_bK_ay/view?usp=sharing
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I create a sequence in tree view automatically in the sequence field as attached picture link? A sequence can be an integer field like 1,2,3 and so on...
https://drive.google.com/file/d/1Fv--oCEiQFyZTO5CMHc9RjQrap_bK_ay/view?usp=sharing
Hello Ishfaq,
Try this,
In py : sequence = fields.Integer(string='Sequence', default=0)
In your xml tree view : <field name = "sequence" widget="handle"/>
and in your class :
_order = "sequence"
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 12 22
|
4495 | ||
|
2
thg 5 24
|
7886 | ||
|
1
thg 3 24
|
2495 | ||
|
0
thg 3 24
|
753 | ||
|
0
thg 3 24
|
2935 |