跳至內容
選單
此問題已被標幟
1 回覆
2760 瀏覽次數

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"    

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 22
4319
2
5月 24
7592
1
3月 24
2189
0
3月 24
611
0
3月 24
2564