83
83
<field name="field_description" on_change="onchange_field_description(field_description, context)"/>
84
84
<field name="name" attrs="{'readonly':[('create_date', '!=', False)]}" on_change="onchange_name(name, context)"/>
85
85
<field name="attribute_type" />
86
<field name="based_on" />
86
<field name="model_id" />
87
87
<field name="serialized" />
88
88
<field name="size" attrs="{'invisible':[('attribute_type', '!=', 'char')]}"/>
89
89
<field name="translate" attrs="{'invisible':[('attribute_type', 'not in', ('char', 'text'))]}"/>
91
<field name="option_ids" colspan="4" attrs="{'invisible':[('attribute_type', 'not in', ['select', 'multiselect'])]}" widget="one2many_list" nolabel="1">
92
<tree string="Attribute Options" editable="top" >
93
<field name="sequence" />
91
<group colspan="4" attrs="{'invisible':[('attribute_type', 'not in', ['select', 'multiselect'])]}">
92
<field name="relation_model_id" on_change="relation_model_id_change(relation_model_id, option_ids, context)"/>
93
<field name="domain" attrs="{'invisible':[('relation_model_id', '=', False)]}"/>
94
<group colspan="4" attrs="{'invisible':[('domain', '!=', False)]}">
95
<button name="button_add_options" attrs="{'invisible':[('relation_model_id', '=', False)]}" type="object" string="Change Options"/>
96
<field name="option_ids" colspan="4" nolabel="1">
97
<tree string="Attribute Options" editable="top">
98
<field name="sequence" invisible="1"/>
99
<field name="name" on_change="name_change(name, parent.relation_model_id, context)"/>
97
104
<field name="create_date" invisible="1"/>
109
<record id="attribute_option_wizard_form_view" model="ir.ui.view">
110
<field name="name">attribute.option.wizard</field>
111
<field name="model">attribute.option.wizard</field>
112
<field name="arch" type="xml">
113
<form string="Options Wizard" col="6">
114
<field name="attribute_id" invisible="1" colspan="2"/>
115
<separator string="options_placeholder"/>
116
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
117
<button name="validate" string="Validate" type="object" icon="gtk-convert"/>
102
122
<record id="attribute_option_form_view" model="ir.ui.view">
103
123
<field name="name">attribute.option.form</field>
104
124
<field name="model">attribute.option</field>
105
125
<field name="arch" type="xml">
106
126
<form string="Attribute Option" col="6">
107
<field name="name" colspan="2"/>
127
<field name="value_ref" colspan="2"/>
108
128
<field name="sequence" colspan="2"/>
109
129
<field name="attribute_id" colspan="2"/>