1
<?xml version="1.0" encoding="utf-8"?>
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]}" />
26
<button icon='gtk-cancel' special="cancel"
28
<button name="do_de_kitting" string="Ok"
29
type="object" icon="gtk-ok" />
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" />