Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3037 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 22
4606
2
kvě 24
8071
1
bře 24
2655
0
bře 24
832
0
bře 24
3055