Odoo Help

Welcome!

This community 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.

0

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

By
Matthew Watkins
on 7/12/16, 12:49 AM 247 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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