Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2915 Widoki

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



Awatar
Odrzuć
Najlepsza odpowiedź

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"    

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 22
4490
2
maj 24
7872
1
mar 24
2477
0
mar 24
745
0
mar 24
2925