Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3047 Tampilan

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



Avatar
Buang
Jawaban Terbai

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"    

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 22
4616
2
Mei 24
8088
1
Mar 24
2657
0
Mar 24
835
0
Mar 24
3056