Odoo Help

0

Odoo 9: Different sort orders for different views with handle widget

By
Matthew Watkins
on 7/12/16, 12:49 AM 434 views

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/12/16, 12:49 AM
Seen: 434 times
Last updated: 7/12/16, 1:56 AM