~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to kit/wizard/kit_selection_view.xml

  • Committer: Quentin THEURET
  • Date: 2011-12-12 08:02:59 UTC
  • mto: This revision was merged to the branch mainline in revision 724.
  • Revision ID: qt@tempo-consulting.fr-20111212080259-oul1f0g37hcpubyc
UF-641 [ADD] Added the empty purchase_followup module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<openerp>
3
 
    <data>
4
 
        
5
 
        <record id="view_kit_selection_form_wizard" model="ir.ui.view">
6
 
            <field name="name">view.kit.selection.form.wizard</field>
7
 
            <field name="model">kit.selection</field>
8
 
            <field name="type">form</field>
9
 
            <field name="arch" type="xml">
10
 
            <form string="Replacement Items Selection">
11
 
                <separator string="You can import replacement items from theoretical kits." colspan="4"/>
12
 
                <field name="order_line_id_kit_selection" invisible="True" />
13
 
                <field name="corresponding_so_id_kit_selection" attrs="{'invisible': [('corresponding_so_line_id_kit_selection', '=', False)]}" />
14
 
                <field name="corresponding_so_line_id_kit_selection" invisible="True" />
15
 
                <field name="impact_so_kit_selection" invisible="True" />
16
 
                <field name="product_id" colspan="4" />
17
 
                <field name="kit_id" colspan="3"
18
 
                        context="{'wizard_composition_type': 'theoretical','composition_type': 'theoretical'}"
19
 
                        domain="[('state', '=', 'completed'), ('composition_type', '=', 'theoretical'), ('composition_product_id', '=', product_id)]" />
20
 
                <button name="import_items" type="object" string="Import Items from Theoretical Kit" icon="gtk-sort-descending" colspan="1" />
21
 
                <group col="4" colspan="4">
22
 
                        <field name="product_ids_kit_selection" nolabel="True"
23
 
                                context="{'pol_ids': [order_line_id_kit_selection]}" />
24
 
                </group>
25
 
                <group colspan="2" />
26
 
                <button icon='gtk-cancel' special="cancel"
27
 
                    string="_Close" />
28
 
                <button name="do_de_kitting" string="Ok"
29
 
                    type="object" icon="gtk-ok" />
30
 
            </form>
31
 
            </field>
32
 
        </record>
33
 
        
34
 
        <record id="view_kit_selection_line_tree" model="ir.ui.view">
35
 
            <field name="name">view.kit.selection.line.tree</field>
36
 
            <field name="model">kit.selection.line</field>
37
 
            <field name="type">tree</field>
38
 
            <field name="arch" type="xml">
39
 
                <tree string="Replacement Items" editable="top" colors="red:integrity_status!='empty'">
40
 
                        <field name="product_id_kit_selection_line"
41
 
                                context="partner_id=parent.partner_id_kit_selection,quantity=qty_kit_selection_line,pricelist=parent.pricelist_id_kit_selection,uom=uom_id_kit_selection_line,warehouse=parent.warehouse_id_kit_selection"
42
 
                                on_change="on_product_id_change(product_id_kit_selection_line,qty_kit_selection_line,uom_id_kit_selection_line,price_unit_kit_selection_line,context)" />
43
 
                        <field name="qty_kit_selection_line"
44
 
                                context="partner_id=parent.partner_id_kit_selection, quantity=qty_kit_selection_line, pricelist=parent.pricelist_id_kit_selection, uom=uom_id_kit_selection_line, warehouse=parent.warehouse_id_kit_selection"
45
 
                                on_change="on_product_id_change(product_id_kit_selection_line,qty_kit_selection_line,uom_id_kit_selection_line,price_unit_kit_selection_line,context)" />
46
 
                        <field name="uom_id_kit_selection_line"
47
 
                                on_change="on_uom_id_change(product_id_kit_selection_line,qty_kit_selection_line,uom_id_kit_selection_line,price_unit_kit_selection_line,context)" />
48
 
                        <field name="price_unit_kit_selection_line" />
49
 
                        <field name="integrity_status" />
50
 
                </tree>
51
 
            </field>
52
 
                </record>
53
 
                
54
 
    </data>
55
 
</openerp>