[ADD] product: allow to reorder product attributes

This commit is contained in:
Nandan Jani
2014-12-18 13:37:33 +01:00
committed by Richard Mathot
parent 2c0d1e274e
commit 6520e30f45
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -316,9 +316,11 @@ class produce_price_history(osv.osv):
class product_attribute(osv.osv):
_name = "product.attribute"
_description = "Product Attribute"
_order = 'sequence,id'
_columns = {
'name': fields.char('Name', translate=True, required=True),
'value_ids': fields.one2many('product.attribute.value', 'attribute_id', 'Values', copy=True),
'sequence': fields.integer('Sequence', help="Determine the display order"),
}
class product_attribute_value(osv.osv):
+1
View File
@@ -414,6 +414,7 @@
<field name="model">product.attribute</field>
<field name="arch" type="xml">
<tree string="Variant Values" editable="top">
<field name="sequence" widget="handle"/>
<field name="name"/>
</tree>
</field>