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

« back to all changes in this revision

Viewing changes to sourcing/wizard/multiple_sourcing_view.xml

  • Committer: Quentin THEURET
  • Date: 2011-11-30 13:31:37 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: qt@tempo-consulting.fr-20111130133137-mdf2fp6hkqmwbppn
UF-647 [ADD] Added a line in Purchase Order to have information about international transport costs

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="mulitple_sourcing_wizard_form_view" model="ir.ui.view">
6
 
            <field name="name">multiple.sourcing.wizard.form.view</field>
7
 
            <field name="model">multiple.sourcing.wizard</field>
8
 
            <field name="type">form</field>
9
 
            <field name="arch" type="xml">
10
 
                <form string="Source multiple lines">
11
 
                    <field name="company_id" invisible="1" />
12
 
                    <field name="error_on_lines" invisible="1" />
13
 
                    <group colspan="4" col="4" attrs="{'invisible': [('error_on_lines', '=', False)]}">
14
 
                        <label string="Some of the selected lines have already been sourced. These lines have been ignored." colspan="4" />
15
 
                    </group>
16
 
                    <group colspan="4" col="4">
17
 
                        <separator colspan="4" string="Selected lines to source" />
18
 
                        <field name="line_ids" nolabel="1" colspan="4">
19
 
                            <tree string="Lines to source" hide_new_button="True" noteditable="True">
20
 
                                <field name="order_id" string="Order reference" />
21
 
                                <field name="line_number" />
22
 
                                <field name="product_id" />
23
 
                                <field name="product_uom_qty" />
24
 
                                <field name="product_uom" />
25
 
                                <field name="real_stock" />
26
 
                            </tree>
27
 
                        </field>
28
 
                        <separator colspan="4" string="Procurement method" />
29
 
                        <field name="type" 
30
 
                               on_change="change_type(type)"/>
31
 
                        <field name="po_cft" attrs="{'readonly': [('type', '=', 'make_to_stock')]}"
32
 
                               on_change="change_po_cft(po_cft)"/>
33
 
                        <separator colspan="4" string="Supplier selection" />
34
 
                        <field name="supplier"
35
 
                               domain="[('id', '!=', company_id), ('available_for_dpo', '=', po_cft), ('line_contains_fo', '=', line_ids)]"
36
 
                               attrs="{'readonly': ['|', ('po_cft', '=', 'cft'), ('type', '=', 'make_to_stock')]}"/>
37
 
                    </group>
38
 
                    <separator colspan="4" string="Actions" />
39
 
                    <button special="cancel" string="Cancel" icon="gtk-cancel" help="Close the wizard" />
40
 
                    <button name="save_lines" string="Save" icon="gtk-apply" type="object" help="Save new settings and close the wizard" />
41
 
                    <button name="source_lines" string="Source default" icon="terp-camera_test" type="object" help="Check confirm the lines as 'default'/main wizard settings" />
42
 
                    <button name="save_source_lines" string="Save &amp; source" icon="gtk-redo" type="object" help="Source lines with new options selected on the wizard" />
43
 
                </form>
44
 
            </field>
45
 
        </record>
46
 
 
47
 
        <act_window name="Source lines"
48
 
                    res_model="multiple.sourcing.wizard"
49
 
                    src_model="sale.order.line"
50
 
                    view_mode="form"
51
 
                    target="new"
52
 
                    key2="client_action_multi"
53
 
                    id="action_multiple_sourcing" 
54
 
                    domain="False" />
55
 
 
56
 
    </data>
57
 
</openerp>