from odoo import models, fields class ProductProduct(models.Model): _inherit = "product.product" _order = "sequence, priority desc, default_code, name, id" variant_sequence = fields.Integer( "Variant sequence", default=1, )