1
<?xml version="1.0" encoding="utf-8"?>
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" />
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" />
28
<separator colspan="4" string="Procurement method" />
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')]}"/>
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 & source" icon="gtk-redo" type="object" help="Source lines with new options selected on the wizard" />
47
<act_window name="Source lines"
48
res_model="multiple.sourcing.wizard"
49
src_model="sale.order.line"
52
key2="client_action_multi"
53
id="action_multiple_sourcing"