[FIX] attributes filter sort

This commit is contained in:
David Beal
2016-03-16 18:54:15 +01:00
parent 3e702f0186
commit 9356ccc497

View File

@@ -13,7 +13,8 @@ class ProductAttributeValue(models.Model):
def _get_attributes_to_filter(self):
""" Inherit if you want reduce the list """
return [(x.id, x.name)
for x in self.env['product.attribute'].search([])]
for x in self.env['product.attribute'].search(
[], order='name DESC')]
@api.model
def _customize_attribute_filters(self, my_filter):