[FIX] website_sale: no need to specific to a selection field that it is of type char
Besides, if set, the field will appear as a simple char field in the form view & editable lists +ADD the type in the editable view
This commit is contained in:
parent
5402e3aa39
commit
ba272ad69a
|
@ -194,7 +194,7 @@ class product_product(osv.Model):
|
|||
class product_attribute(osv.Model):
|
||||
_inherit = "product.attribute"
|
||||
_columns = {
|
||||
'type': fields.selection([('radio', 'Radio'), ('select', 'Select'), ('color', 'Color'), ('hidden', 'Hidden')], string="Type", type="char"),
|
||||
'type': fields.selection([('radio', 'Radio'), ('select', 'Select'), ('color', 'Color'), ('hidden', 'Hidden')], string="Type"),
|
||||
}
|
||||
_defaults = {
|
||||
'type': lambda *a: 'radio',
|
||||
|
|
|
@ -55,6 +55,16 @@
|
|||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="attribute_tree_view" model="ir.ui.view">
|
||||
<field name="name">product.attribute.tree.type</field>
|
||||
<field name="model">product.attribute</field>
|
||||
<field name="inherit_id" ref="product.attribute_tree_view"></field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="type"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Product Public Categories -->
|
||||
<record id="product_public_category_form_view" model="ir.ui.view">
|
||||
|
|
Loading…
Reference in New Issue