[MERGE] stock : Merged Valencia's branch for prodlot warning. (Case:6001)
[odoo/odoo.git] / addons / stock / wizard / stock_inventory_line_split_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
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"/>
12                         <newline/>
13                                                 <group colspan="4" col="4">
14                                                     <group colspan="1" col="2">
15                                                         <field name="use_exist"/>
16                                                     </group>
17                                                         <group colspan="1" col="2">
18                                                             <field name="qty" readonly="1"/>
19                                                         </group>
20                                                         <group colspan="1" col="2">
21                                                             <field name="product_uom" readonly="1"/>
22                                                         </group>
23                             </group>
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" />
29                                     </tree>
30                                     <form string="Lots Number">
31                                         <field name="name" string="Lots"/>
32                                         <field name="quantity" />
33                                     </form>
34                                 </field>
35                             </group>
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" />
41                                     </tree>
42                                     <form string="Lots Number">
43                                         <field name="prodlot_id" string="Lots" domain="[('product_id','=',parent.product_id)]"/>
44                                         <field name="quantity" />
45                                     </form>
46                                 </field>
47                             </group>
48                             <separator string="" colspan="4" />
49                             <label string="" colspan="2" />
50                             <button icon='gtk-cancel' special="cancel"
51                                 string="Cancel" />
52                             <button name="split_lot" string="Ok"
53                                 type="object" icon="gtk-ok" />
54                     </group>
55                 </form>
56             </field>
57         </record> 
58                 
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>
66         </record>
67
68     </data>
69 </openerp>