Odoo Help


Change display order of product variants

Mark Lewis
on 9/30/15, 11:39 AM 1,209 views


How can I change the order of variants displayed on a website page.

Say I sell hammers: 7cm, 12 cm and 18 cm

Currently the website item hammer offers them (as variants) 18cm first, then 7cm, then 12 cm

How can I change this order to be alphanumeric? I couldn't find a variant sequence number.


On 9/30/15, 12:23 PM

You inherit model product.product and define new field "Sequence". Additionally change sort order in this model to:

_order = 'sequence,default_code,name_template'

and modify tree/form views to show new field.

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: 9/30/15, 11:39 AM
Seen: 1209 times
Last updated: 9/30/15, 12:23 PM