<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!--  Add menu: Billing - Deliveries to invoice -->
        <record id="outgoing_picking_list_to_invoice" model="ir.actions.act_window">
            <field name="name">Deliveries to Invoice</field>
            <field name="res_model">stock.picking</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar</field>
            <field name="domain">[('picking_type_id.code','=','outgoing')]</field>
            <field name="context">{'default_type': 'out', 'contact_display': 'partner_address', 'search_default_to_invoice': 1, 'search_default_done': 1}</field>
            <field name="search_view_id" ref="stock.view_picking_internal_search"/>
        </record>
        <menuitem id="base.menu_invoiced" name="Invoicing" parent="base.menu_base_partner" sequence="5"/>
        <menuitem action="outgoing_picking_list_to_invoice" id="menu_action_picking_list_to_invoice" parent="base.menu_invoiced" groups="sale_stock.group_invoice_deli_orders" sequence="20"/>
        

        
    
        
        <record id="stock_location_route_form_view_inherit" model="ir.ui.view">
            <field name="name">stock.location.route.form</field>
            <field name="inherit_id" ref="stock.stock_location_route_form_view"/>
            <field name="model">stock.location.route</field>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='warehouse_selectable']" position="after">
                    <field name="sale_selectable" string="Sale Order Lines"/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>
