1. zikzakmedia
  2. trytond-product_variant

Commits

Raimon Esteve (Zikzakmedia)  committed 513aa04

Default sequence is 0

  • Participants
  • Parent commits c0664ef
  • Branches default

Comments (0)

Files changed (1)

File product.py

View file
  • Ignore whitespace
         super(ProductAttribute, cls).__setup__()
         cls._order.insert(0, ('sequence', 'ASC'))
 
+    @staticmethod
+    def default_sequence():
+        return 0
+
 
 class AttributeValue(ModelSQL, ModelView):
     "Values for Attributes"
         super(AttributeValue, cls).__setup__()
         cls._order.insert(0, ('sequence', 'ASC'))
 
+    @staticmethod
+    def default_sequence():
+        return 0
+
 
 class ProductTemplateAttribute(ModelSQL, ModelView):
     "Product Template - Product Attribute"