~savoirfairelinux-openerp/openerp-product-attributes/product_dependencies

« back to all changes in this revision

Viewing changes to product_custom_attributes/product_attribute_view.xml

  • Committer: Guewen Baconnier
  • Author(s): Raphaël Valyi
  • Date: 2013-06-14 09:50:14 UTC
  • mfrom: (204.1.8 polymorphic-relations)
  • Revision ID: guewen.baconnier@camptocamp.com-20130614095014-whgkz7exorr7tbp3
[IMP] Generalization of product_custom_attributes for OpenERP v7. See detailed logs for more information

Show diffs side-by-side

added added

removed removed

Lines of Context:
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'))]}"/>
90
90
                    <newline />
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" />
94
 
                            <field name="name" />
 
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)"/>
95
100
                        </tree>
96
101
                    </field>
 
102
                    </group>
 
103
                    </group>
97
104
                    <field name="create_date" invisible="1"/>
98
105
                </form>
99
106
            </field>
100
107
        </record>
101
108
 
 
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"/>
 
118
                </form>
 
119
            </field>
 
120
        </record>
 
121
 
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"/>
110
130
                </form>
163
183
            <field eval="1" name="priority"/>
164
184
            <field name="arch" type="xml">
165
185
                <tree string="Attribute Option">
166
 
                    <field name="name" />
 
186
                    <field name="value_ref" />
167
187
                </tree>
168
188
            </field>
169
189
        </record>
175
195
            <field name="arch" type="xml">
176
196
                <tree string="Attribute Option">
177
197
                    <field name="sequence" />
178
 
                    <field name="name" />
 
198
                    <field name="value_ref" />
179
199
                    <field name="attribute_id" />
180
200
                </tree>
181
201
            </field>
229
249
            <field name="model">attribute.option</field>
230
250
            <field name="arch" type="xml">
231
251
                <search string="Search Attribute Options">
232
 
                    <field name="name" />
 
252
                    <field name="value_ref" />
233
253
                    <field name="attribute_id"/>
234
254
               </search>
235
255
            </field>