Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3046 Переглядів

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"    

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 22
4615
2
трав. 24
8086
1
бер. 24
2657
0
бер. 24
835
0
бер. 24
3055