Skip to Content
मेन्यू
This question has been flagged
1 Reply
3084 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
2
दिस॰ 22
4640
2
मई 24
8143
1
मार्च 24
2699
0
मार्च 24
851
0
मार्च 24
3100