From c62a163f9314d7b2c3163fc9fb297f52fb4fdf53 Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 25 Mar 2016 12:37:33 +0100 Subject: [PATCH] [IMP] order by sequence in attribute --- attribute_usability/attribute.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/attribute_usability/attribute.py b/attribute_usability/attribute.py index 7cdc843..ecf0e78 100644 --- a/attribute_usability/attribute.py +++ b/attribute_usability/attribute.py @@ -2,10 +2,15 @@ # © 2016 David BEAL @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api +from openerp import models, api from lxml import etree +class ProductAtribute(models.Model): + _inherit = 'product.attribute' + _order = 'sequence ASC' + + class ProductAttributeValue(models.Model): _inherit = 'product.attribute.value'