[FIX] stock_picking_wave: fixed picking wave report
[odoo/odoo.git] / addons / stock_account / stock_account_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="view_location_form_inherit" model="ir.ui.view">
6             <field name="name">stock.location.form.inherit</field>
7             <field name="model">stock.location</field>
8             <field name="inherit_id" ref="stock.view_location_form"/>
9             <field name="arch" type="xml">
10                 <xpath expr="//group[@name='localization']" position="after">
11                     <group string="Accounting Information" attrs="{'invisible':[('usage','not in',('inventory','production'))]}">
12                         <field name="valuation_in_account_id"/>
13                         <field name="valuation_out_account_id"/>
14                     </group>
15                 </xpath>
16             </field>
17         </record>
18
19
20         <record id="view_picking_inherit_form2" model="ir.ui.view">
21             <field name="name">stock.picking.form.inherit</field>
22             <field name="model">stock.picking</field>
23             <field name="inherit_id" ref="stock.view_picking_form"/>
24             <field name="arch" type="xml">
25                 <xpath expr="//button[@name='do_partial_open_barcode']" position="after">
26                     <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|',('state','&lt;&gt;','done'),('invoice_state','&lt;&gt;','2binvoiced')]}" type="action" class="oe_highlight" groups="base.group_user"/>
27                     <button name="%(action_stock_invoice_onshipping)d" string="Refund Invoice" attrs="{'invisible': ['|',('state','&lt;&gt;','done'),('invoice_state','&lt;&gt;','invoiced')]}" type="action" class="oe_highlight" groups="base.group_user" context="{'inv_type': 'out_refund'}"/>
28                 </xpath>
29                 <xpath expr="//field[@name='move_type']" position="after">
30                     <field name="invoice_state" groups="account.group_account_invoice"/>
31                 </xpath>
32             </field>
33         </record>
34         
35         <record id="view_move_form_inherit" model="ir.ui.view">
36             <field name="name">stock.move.form.inherit</field>
37             <field name="model">stock.move</field>
38             <field name="inherit_id" ref="stock.view_move_form"/>
39             <field name="arch" type="xml">
40                 <xpath expr="//field[@name='picking_type_id']" position="after">
41                     <field name="invoice_state" groups="account.group_account_invoice"/>
42                 </xpath>
43             </field>
44         </record>
45         <record model="ir.ui.view" id="view_procurement_rule_form_stockaccount_inherit">
46             <field name="name">stock.procurement.rule.inherit.form</field>
47             <field name="model">procurement.rule</field>
48             <field name="inherit_id" ref="stock.view_procurement_rule_form_stock_inherit"/>
49             <field name="arch" type="xml">
50                 <xpath expr="//field[@name='picking_type_id']" position="after">
51                     <field name="invoice_state"/>
52                 </xpath>
53             </field>
54         </record>
55     </data>
56 </openerp>