1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_split_in_lots_inherit" model="ir.ui.view">
5 <field name="name">Split Inventory Line</field>
6 <field name="model">stock.inventory.line.split</field>
7 <field name="type">form</field>
8 <field name="arch" type="xml">
9 <form string="Split in lots">
10 <group width="660" height="275">
11 <field name="product_id" colspan="4" readonly="1"/>
13 <group colspan="4" col="4">
14 <group colspan="1" col="2">
15 <field name="use_exist"/>
17 <group colspan="1" col="2">
18 <field name="qty" readonly="1"/>
20 <group colspan="1" col="2">
21 <field name="product_uom" readonly="1"/>
24 <group colspan="4" attrs="{'invisible':[('use_exist','=',True)]}">
25 <field name="line_ids" colspan="4" nolabel="1">
26 <tree string="Lots Number" editable="bottom">
27 <field name="name" string="Lots"/>
28 <field name="quantity" />
30 <form string="Lots Number">
31 <field name="name" string="Lots"/>
32 <field name="quantity" />
36 <group colspan="4" attrs="{'invisible':[('use_exist','!=',True)]}">
37 <field name="line_exist_ids" colspan="4" nolabel="1">
38 <tree string="Lots Number" editable="bottom">
39 <field name="prodlot_id" string="Lots" domain="[('product_id','=',parent.product_id)]"/>
40 <field name="quantity" />
42 <form string="Lots Number">
43 <field name="prodlot_id" string="Lots" domain="[('product_id','=',parent.product_id)]"/>
44 <field name="quantity" />
48 <separator string="" colspan="4" />
49 <label string="" colspan="2" />
50 <button icon='gtk-cancel' special="cancel"
52 <button name="split_lot" string="Ok"
53 type="object" icon="gtk-ok" />
59 <record id="action_view_stock_inventory_line_split" model="ir.actions.act_window">
60 <field name="name">Split inventory lines</field>
61 <field name="type">ir.actions.act_window</field>
62 <field name="res_model">stock.inventory.line.split</field>
63 <field name="view_type">form</field>
64 <field name="view_mode">form</field>
65 <field name="target">new</field>