[IMP] Tour: add tour in web module; tour became available in backend.
[odoo/odoo.git] / addons / purchase / stock_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="stock_move_purchase" model="ir.ui.view">
5             <field name="name">stock.move.form</field>
6             <field name="model">stock.move</field>
7             <field name="inherit_id" ref="stock.view_move_form"/>
8             <field name="arch" type="xml">
9                  <xpath expr="//group[@name='destination_grp']" position="inside">
10                     <field name="purchase_line_id"/>
11                 </xpath>
12             </field>
13         </record>
14
15         <record id="view_picking_in_search_picking_inherit" model="ir.ui.view">
16             <field name="name">stock.picking.in.search.inherit</field>
17             <field name="model">stock.picking</field>
18             <field name="inherit_id" ref="stock.view_picking_internal_search"/>
19             <field name="arch" type="xml">
20                 <xpath expr="//field[@name='product_id']" position="before">
21                     <filter name="reception_to_invoice" string="Incoming Shipments to Invoice" domain="[('reception_to_invoice', '=', True)]"/>
22                 </xpath>
23             </field>
24         </record>
25
26         <!-- is it need ? we have another method "Receive Products"-->
27         <record id="purchase_order_2_stock_picking" model="ir.ui.view">
28             <field name="name">Purchase Picking Inherited</field>
29             <field name="model">purchase.order</field>
30             <field name="inherit_id" ref="purchase.purchase_order_form"/>
31             <field name="arch" type="xml">
32                  <xpath expr="//div[contains(@class, 'oe_title')]" position="before">
33                     <div class="oe_right oe_button_box" name="buttons">
34                         <button type="object"
35                             name="view_picking"
36                             class="oe_stat_button"
37                             icon="fa-truck"
38                             states="approved">
39                             <field name="shipment_count" widget="statinfo" string="In Shipments" help="Incoming Shipments"/>
40                         </button>
41                         <button type="object"  name="invoice_open"
42                             class="oe_stat_button"
43                             icon="fa-pencil-square-o"
44                             attrs="{'invisible': [('state', 'in', ['draft','sent'])]}">
45                             <field name="invoice_count" widget="statinfo" string="Invoices"/>
46                         </button> 
47                     </div>
48                 </xpath>
49             </field>
50         </record>
51         
52         <record id="view_warehouse_inherited" model="ir.ui.view">
53             <field name="name">Stock Warehouse Inherited</field>
54             <field name="model">stock.warehouse</field>
55             <field name="inherit_id" ref="stock.view_warehouse"/>
56             <field name="arch" type="xml">
57                  <xpath expr="//field[@name='default_resupply_wh_id']" position="before">
58                     <field name="buy_to_resupply" />
59                 </xpath>
60             </field>
61         </record>
62
63         <record id="action_picking_tree_picking_to_invoice" model="ir.actions.act_window">
64             <field name="name">On Incoming Shipments</field>
65             <field name="res_model">stock.picking</field>
66             <field name="type">ir.actions.act_window</field>
67             <field name="view_type">form</field>
68             <field name="view_mode">tree,form,calendar</field>
69             <field name="context">{"default_type": "in", "contact_display": "partner_address", "search_default_done": 1, "search_default_reception_to_invoice": 1}</field>
70             <field name="search_view_id" ref="stock.view_picking_internal_search"/>
71             <field name="help" type="html">
72               <p class="oe_view_nocontent_create">
73                 Click to create a new incoming shipment.
74               </p><p> 
75                 Here you can track all the product receptions of purchase
76                 orders where the invoicing is "Based on Incoming Shipments",
77                 and for which you have not received a supplier invoice yet.
78                 You can generate a supplier invoice based on those receptions.
79               </p>
80             </field>
81        </record>
82
83         <menuitem action="action_picking_tree_picking_to_invoice"
84             id="menu_action_picking_tree_picking_to_invoice"
85             parent="purchase.menu_procurement_management_invoice" sequence="90"/>
86     </data>
87 </openerp>