~openerp-commiter/openobject-addons/extra-6.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0"?>
<openerp>
    <data>

        <record id="step_product_variant_configurator" model="sale_product_multistep_configurator.configurator.step">
            <field name="name">product_variant_configurator.configurator</field>
            <field name="model_id"  search="[('model','=','product_variant_configurator.configurator')]"/>
            <field name="sequence"  eval="1"/>
        </record>

        <record id="product_variant_configurator_action" model="ir.actions.act_window">
            <field name="name">product_variant_configurator_action</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product_variant_configurator.configurator</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record> 

        <record id="view_product_variant_configurator" model="ir.ui.view">
            <field name="name">view_product_variant_configurator</field>
            <field name="model">product_variant_configurator.configurator</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Product Configurator">
                    <field name="product_tmpl_id" on_change="onchange_product_tmpl_id(product_tmpl_id)"/>
                    <field name="product_variant_id" on_change="onchange_product_variant_id(product_variant_id, dimension_configuration_line_ids)" context="{'dimension_configuration_line_ids': dimension_configuration_line_ids}" />
                    <field colspan="4" name="dimension_configuration_line_ids">
                        <tree string="Dimension" editable="bottom">
                            <field name="dimension_type_id" readonly="1" on_change="onchange_dimension_type_id(dimension_type_id)" context="{'product_tmpl_id':parent.product_tmpl_id}" />
                            <field name="dimension_type_value_id" on_change="onchange_dimension_type_value_id(dimension_type_value_id)" />
                            <field name="dimension_custom_value" on_change="onchange_dimension_custom_value(dimension_custom_value, allow_custom_value)" attrs="{'readonly':[('allow_custom_value','=',False)]}" />
                            <field name="allow_custom_value" readonly="1"/>
                        </tree>
                        <form string="Dimension">
                            <field name="dimension_type_id" readonly="1" on_change="onchange_dimension_type_id(dimension_type_id)" context="{'product_tmpl_id':parent.product_tmpl_id}" />
                            <field name="dimension_type_value_id" on_change="onchange_dimension_type_value_id(dimension_type_value_id)" />
                            <field name="dimension_custom_value" on_change="onchange_dimension_custom_value(dimension_custom_value, allow_custom_value)" attrs="{'readonly':[('allow_custom_value','=',False)]}" />
                            <field name="allow_custom_value" readonly="1"/>
                        </form>
                    </field>
                    <separator string="" colspan="4"/>
                    <group colspan="4">
                        <label string="" colspan="2"/>
                        <button icon="gtk-cancel" special="cancel" string="Cancel" colspan="1"/>
                        <button icon="gtk-ok" name="configure_line" string="Validate order line" type="object" attrs="{'invisible':[('product_variant_id','=',False)]}" colspan="1"/>
                    </group>
                </form>
            </field>
        </record>

    </data>
</openerp>