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="arch" type="xml">
10 <form string="Consume Move" version="7.0">
11 <group string="Consume Products">
12 <field name="product_id" readonly="1"/>
13 <label for="product_qty"/>
15 <field name="product_qty" class="oe_inline"/>
16 <field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
18 <field name="location_id" groups="stock.group_locations"/>
21 <button name="do_move_consume" string="Ok" type="object" class="oe_highlight"/>
23 <button string="Cancel" class="oe_link" special="cancel" />
29 <record id="move_consume" model="ir.actions.act_window">
30 <field name="name">Consume Move</field>
31 <field name="type">ir.actions.act_window</field>
32 <field name="res_model">stock.move.consume</field>
33 <field name="view_type">form</field>
34 <field name="view_mode">form</field>
35 <field name="target">new</field>
38 <record id="view_stock_move_scrap_wizard" model="ir.ui.view">
39 <field name="name">Scrap Move</field>
40 <field name="model">stock.move.scrap</field>
41 <field name="arch" type="xml">
42 <form string="Scrap Move" version="7.0">
43 <separator string="Scrap Products"/>
45 <field name="product_id" readonly="1"/>
46 <label for="product_qty"/>
48 <field name="product_qty" class="oe_inline"/>
49 <field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
51 <field name="location_id" string="Scrap Location" widget="selection"
52 domain="[('usage','!=','view'),('scrap_location','=',True)]" groups="stock.group_locations"/>
55 <button name="move_scrap" string="Ok" type="object" class="oe_highlight" />
57 <button string="Cancel" class="oe_link" special="cancel" />
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 Serial Numbers</field>
74 <field name="model">stock.move.split</field>
75 <field name="arch" type="xml">
76 <form string="Split in Serial Numbers" version="7.0">
78 <field name="product_id" readonly="1"/>
81 <field name="qty" readonly="1" class="oe_inline"/>
82 <field name="product_uom" readonly="1" class="oe_inline"/>
84 <field name="location_id" invisible="1"/>
85 <field name="use_exist"/>
87 <field name="line_ids" attrs="{'invisible':[('use_exist','=',True)]}">
88 <tree string="Serial Numbers" editable="bottom">
90 <field name="quantity" />
92 <form string="Serial Number" version="7.0">
95 <field name="quantity" />
99 <field name="line_exist_ids" attrs="{'invisible':[('use_exist','!=',True)]}">
100 <tree string="Serial Numbers" editable="bottom">
101 <field name="prodlot_id" string="Serial Number" quick_create="false" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)" context="{'product_id': parent.product_id}"/>
102 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom,context)" />
104 <form string="Serial Number" version="7.0">
106 <field name="prodlot_id" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)"/>
107 <field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)" />
112 <button name="split_lot" string="Split" type="object" class="oe_highlight"/>
114 <button string="Cancel" class="oe_link" special="cancel"/>
120 <record id="track_line" model="ir.actions.act_window">
121 <field name="name">Split in Serial Numbers</field>
122 <field name="type">ir.actions.act_window</field>
123 <field name="res_model">stock.move.split</field>
124 <field name="view_type">form</field>
125 <field name="view_mode">form</field>
126 <field name="target">new</field>