コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3039 ビュー

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
4607
2
5月 24
8074
1
3月 24
2655
0
3月 24
832
0
3月 24
3055