diff --git a/addons/product/models/product_template_attribute_line.py b/addons/product/models/product_template_attribute_line.py index 9cc23fb1ad1..10143cca7f7 100644 --- a/addons/product/models/product_template_attribute_line.py +++ b/addons/product/models/product_template_attribute_line.py @@ -13,7 +13,7 @@ class ProductTemplateAttributeLine(models.Model): _rec_name = 'attribute_id' _rec_names_search = ['attribute_id', 'value_ids'] _description = "Product Template Attribute Line" - _order = 'attribute_id, id' + _order = 'sequence, attribute_id, id' active = fields.Boolean(default=True) product_tmpl_id = fields.Many2one( @@ -22,6 +22,7 @@ class ProductTemplateAttributeLine(models.Model): ondelete='cascade', required=True, index=True) + sequence = fields.Integer("Sequence", default=10) attribute_id = fields.Many2one( comodel_name='product.attribute', string="Attribute", diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index 578c48919d7..f154b45449e 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -61,6 +61,7 @@ +