Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4983 Visualizzazioni

Hello i tryed to use widget handler to my custom module. Everything seems ok i can drag things around but then i click save all the order goes back to normal. Any ideas?

Regards Darius

Avatar
Abbandona
Risposta migliore

In your XML, you would have enabled the handle widget on a certain field. In your .py file, mention that field in _order , (usually included after _columns) :

_order='your_field_name'

You might also want to specify a default value for it:

_defaults={'your_field_name':2}

Let me know if it doesn't work.
 

Avatar
Abbandona
Autore Risposta migliore

Thanks! it worked :)

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 23
1411
1
lug 24
2228
1
lug 23
4652
0
mar 24
3393
1
set 22
6321