~bstanciu/openobject-addons/improvements_c2c@bstanciu

« back to all changes in this revision

Viewing changes to product_variant_multi/product_view.xml

  • Committer: Alexis de Lattre
  • Date: 2012-01-11 17:06:24 UTC
  • Revision ID: alexis@via.ecp.fr-20120111170624-qou1cfaupsegypfu
In the "product template" view, the variants tab is now always displayed and it shows by default the list of variants. That way, for a mono-variant product, you can see it's single variant.
When you activate the "is multi variant" option, it shows the dimensions and the buttons to auto-generate variants.

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
                    </field>
187
187
 
188
188
                    <xpath expr="/form/notebook" position="inside">
189
 
                        <page string="Variants" attrs="{'invisible':[('is_multi_variants','=',False)]}">
190
 
                                <group colspan="1" col="4">
 
189
                        <page string="Variants">
 
190
                                <group colspan="1" col="4" attrs="{'invisible':[('is_multi_variants','=',False)]}">
191
191
                                    <field name="dimension_type_ids" nolabel="1" colspan="4" />
192
192
                                    <button name="add_all_option" string="Add All Option" type="object" colspan="2"/>
193
193
                                    <field name="value_ids" nolabel="1" colspan="4" />
194
194
                                </group>
195
 
                                <group  colspan="1" col="4">
 
195
                                <group  colspan="1" col="4" attrs="{'invisible':[('is_multi_variants','=',False)]}">
196
196
                                    <field name="variant_model_name" colspan="4"/>
197
197
                                    <field name="variant_model_name_separator" colspan="4"/>
198
198
                                    <field name="code_generator" colspan="4"/>