1 <?xml version="1.0" encoding="utf-8"?>
4 <!-- Consume, scrap move -->
6 <record id="view_stock_move_consume_wizard" model="ir.ui.view">
7 <field name="name">Consume Move</field>
8 <field name="model">stock.move.consume</field>
9 <field name="type">form</field>
10 <field name="arch" type="xml">
11 <form string="Consume Move">
12 <separator string="Consume Products" colspan="4"/>
13 <field name="product_id" colspan="4" readonly="1"/>
14 <field name="location_id" colspan="4" />
15 <field name="product_qty" colspan="2"/>
16 <field name="product_uom" nolabel="1" readonly="1"/>
18 <separator string="" colspan="4" />
19 <label string="" colspan="2" />
20 <group col="2" colspan="1">
21 <button icon='gtk-cancel' special="cancel"
23 <button name="do_move_consume" string="Ok"
24 colspan="1" type="object" icon="gtk-ok" />
30 <record id="move_consume" model="ir.actions.act_window">
31 <field name="name">Consume Move</field>
32 <field name="type">ir.actions.act_window</field>
33 <field name="res_model">stock.move.consume</field>
34 <field name="view_type">form</field>
35 <field name="view_mode">form</field>
36 <field name="target">new</field>
39 <record id="view_stock_move_scrap_wizard" model="ir.ui.view">
40 <field name="name">Scrap Move</field>
41 <field name="model">stock.move.scrap</field>
42 <field name="type">form</field>
43 <field name="arch" type="xml">
44 <form string="Scrap Move">
45 <separator string="Scrap Products" colspan="4"/>
46 <field name="product_id" colspan="4" readonly="1"/>
47 <field name="location_id" colspan="4" string="Scrap Location" domain="[('usage','<>','view'),('scrap_location','=',True)]" widget="selection"/>
48 <field name="product_qty" colspan="2"/>
49 <field name="product_uom" nolabel="1" readonly="1"/>
51 <separator string="" colspan="4" />
52 <label string="" colspan="2" />
53 <group col="2" colspan="1">
54 <button icon='gtk-cancel' special="cancel"
56 <button name="move_scrap" string="Ok"
57 colspan="1" type="object" icon="gtk-ok" />
63 <record id="move_scrap" model="ir.actions.act_window">
64 <field name="name">Scrap Move</field>
65 <field name="type">ir.actions.act_window</field>
66 <field name="res_model">stock.move.scrap</field>
67 <field name="view_type">form</field>
68 <field name="view_mode">form</field>
69 <field name="target">new</field>
72 <record id="view_split_in_lots" model="ir.ui.view">
73 <field name="name">Split in lots</field>
74 <field name="model">stock.move.split</field>
75 <field name="type">form</field>
76 <field name="arch" type="xml">
77 <form string="Split in lots">
78 <group width="660" height="275">
79 <field name="product_id" colspan="4" readonly="1"/>
81 <group colspan="4" col="4">
82 <group colspan="1" col="2">
83 <field name="use_exist"/>
85 <group colspan="1" col="2">
86 <field name="qty" readonly="1"/>
88 <group colspan="1" col="2">
89 <field name="product_uom" readonly="1"/>
92 <field name="location_id" invisible="1"/>
94 <group colspan="4" attrs="{'invisible':[('use_exist','=',True)]}">
95 <field name="line_ids" colspan="4" nolabel="1">
96 <tree string="Production Lot Numbers" editable="bottom">
97 <field name="name" string="Lots"/>
98 <field name="quantity" />
100 <form string="Production Lot Number">
101 <field name="name" string="Lot number"/>
102 <field name="quantity" />
106 <group colspan="4" attrs="{'invisible':[('use_exist','!=',True)]}">
107 <field name="line_exist_ids" colspan="4" nolabel="1">
108 <tree string="Production Lot Numbers" editable="bottom">
109 <field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
110 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
112 <form string="Production Lot Number">
113 <field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
114 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
118 <separator string="" colspan="4" />
119 <label string="" colspan="2" />
120 <button icon='gtk-cancel' special="cancel"
122 <button name="split_lot" string="Ok"
123 type="object" icon="gtk-ok" />
129 <record id="track_line" model="ir.actions.act_window">
130 <field name="name">Split in lots</field>
131 <field name="type">ir.actions.act_window</field>
132 <field name="res_model">stock.move.split</field>
133 <field name="view_type">form</field>
134 <field name="view_mode">form</field>
135 <field name="target">new</field>