Odoo Help


How to override the default order of a many2many relationship?

Shawn L Yates
on 2/10/15, 3:07 AM 1,423 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?

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: 1423 times
Last updated: 3/16/15, 8:10 AM