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

I have a model with a list and kanban view. The kanban field is sorted using _order='sequence' and can be dragged and dropped. I would like to add a handle widget to a field called 'list_sequence' and use that to order the list view.

The intended result is that I could drag and drop the list view and kanban into different orders.

The behavior right now is that both views use the sequence field for their order, so when I drag in one view, it changes the order in the other.

I've tried default_order in the XML tag for the list, but that disables the handle widget.
I've tried dynamically changing _order, but it appears that the order is only calculated when the window action is run.
I wrote a module that triggered a reorder when the user clicked on the view buttons in the upper right, but that didn't work. I'm not really sure why, though.

I'm really scratching my head on this one.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 23
10541
0
giu 21
4919
4
mar 22
17884
0
feb 21
2177
3
giu 20
5264