Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4981 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.
 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thanks! it worked :)

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
aug. 23
1408
1
iul. 24
2221
1
iul. 23
4652
0
mar. 24
3391
1
sept. 22
6319