[ADD] product: allow to reorder product attributes
This commit is contained in:
committed by
Richard Mathot
parent
2c0d1e274e
commit
6520e30f45
@@ -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):
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user