[MERGE] Sync with trunk, until revision 8927
[odoo/odoo.git] / addons / stock / wizard / stock_partial_move_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="action_partial_move_server" model="ir.actions.server">
5             <field name="name">Deliver/Receive Products</field>
6             <field name="model_id" ref="model_stock_move"/>
7             <field name="state">code</field>
8             <field name="code">action = obj.action_partial_move(context=context)</field>
9         </record>
10
11         <record id="ir_open_partial_move_wizard" model="ir.values">
12             <field eval="'client_action_multi'" name="key2"/>
13             <field eval="'stock.move'" name="model"/>
14             <field name="name">Deliver/Receive Products</field>
15             <field eval="'ir.actions.server,%d'%action_partial_move_server" name="value"/>
16         </record>
17
18         <record id="stock_partial_move_form" model="ir.ui.view">
19             <field name="name">stock.partial.move.form</field>
20             <field name="model">stock.partial.move</field>
21             <field name="arch" type="xml">
22                 <form string="Stock Move" version="7.0">
23                     <separator string="Products"/>
24                     <field name="move_ids"/>
25                     <footer>
26                         <button name="do_partial" string="_Validate" type="object" class="oe_highlight" context="{'group_field_invisible': True}"/>
27                         or
28                         <button string="Cancel" class="oe_link" special="cancel" />
29                     </footer>
30                 </form>
31             </field>
32         </record>
33
34         <record id="stock_partial_move_line_list" model="ir.ui.view">
35             <field name="name">stock.partial.move.line.list</field>
36             <field name="model">stock.partial.move.line</field>
37             <field name="arch" type="xml">
38                 <tree editable="bottom" string="Product Moves">
39                     <field name="product_id" />
40                     <field name="quantity" />
41                     <field name="product_uom" groups="product.group_uom"/>
42                     <field name="location_id" />
43                     <field name="location_dest_id" />
44                     <field name="prodlot_id" domain="[('product_id', '=', product_id)]" groups="stock.group_production_lot"/>
45                     <field name="update_cost" invisible="1"/>
46                     <field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
47                     <field name="currency" attrs="{'invisible': [('update_cost','=', False)]}" groups="base.group_multi_currency"/>
48                 </tree>
49             </field>
50         </record>
51
52         <record id="stock_partial_move_line_form" model="ir.ui.view">
53             <field name="name">stock.partial.move.line.form</field>
54             <field name="model">stock.partial.move.line</field>
55             <field name="arch" type="xml">
56                 <form string="Stock Partial Move Line" version="7.0">
57                     <group>
58                         <field name="product_id" />
59                         <field name="quantity" />
60                         <field name="product_uom" />
61                         <field name="location_id" />
62                         <field name="location_dest_id" />
63                         <field name="prodlot_id" domain="[('product_id', '=', product_id)]"/>
64                         <field name="update_cost" invisible="1"/>
65                         <field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
66                         <field name="currency" attrs="{'invisible': [('update_cost','=', False)]}" groups="base.group_multi_currency"/>
67                     </group>
68                  </form>
69             </field>
70         </record>
71     </data>
72 </openerp>