Odoo Help


How to override the default order of a many2many relationship?

on 2/10/15, 3:07 AM 991 views

I'm creating a custom module and have a Many2many relationship that needs to maintain order.  I added a sequence field to the associated table, but that doesn't seem to help.  I tried the many2many_sorted class found in the one2many_sorted community module, but I couldn't get it to work. 

Is there an example of getting many2many_sorted to work with v8, or is there another approach to get the many2many widget to allow ordering?

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


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)


Asked: 2/10/15, 3:07 AM
Seen: 991 times
Last updated: 3/16/15, 8:10 AM