Launchpad automatic translations update.
[odoo/odoo.git] / addons / sale_stock / sale_stock_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4
5         <record id="view_sale_shop_form_inherit" model="ir.ui.view">
6             <field name="name">sale.shop.inherit.form</field>
7             <field name="model">sale.shop</field>
8             <field name="inherit_id" ref="sale.view_shop_form"/>
9             <field name="arch" type="xml">
10                 <xpath expr="//group[@name='shop']" position="before">
11                      <label for="warehouse_id" class="oe_edit_only"/>
12                      <h2><field name="warehouse_id" required="1"/></h2>
13                 </xpath>
14             </field>
15         </record>
16
17          <record id="view_shop_tree_inherit" model="ir.ui.view">
18              <field name="name">sale.shop.sale.stock</field>
19              <field name="model">sale.shop</field>
20              <field name="inherit_id" ref="sale.view_shop_tree"/>
21              <field name="arch" type="xml">
22                  <field name="name" position="after">
23                      <field name="warehouse_id"/>
24                  </field>
25              </field>
26          </record>
27
28         <menuitem action="sale.action_shop_form" id="menu_action_shop_form" parent="base.menu_base_config" sequence="35" groups="stock.group_locations"/>
29
30         <record id="view_order_form_inherit" model="ir.ui.view">
31             <field name="name">sale.order.form.sale.stock</field>
32             <field name="model">sale.order</field>
33             <field name="inherit_id" ref="sale.view_order_form"/>
34             <field name="arch" type="xml">
35                 <data>
36                    <xpath expr="//button[@name='invoice_corrected']" position="after">
37                        <button name="ship_recreate" states="shipping_except" string="Recreate Delivery Order"/>
38                        <button name="ship_corrected" states="shipping_except" string="Ignore Exception"/>
39                    </xpath>
40                    <xpath expr="//button[@name='action_view_invoice']" position="after">
41                        <field name="picking_ids" invisible="1"/>
42                        <button name="action_view_delivery" string="View Delivery Order" type="object" class="oe_highlight"
43                            attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}" groups="base.group_user"/>
44                    </xpath>
45                     <xpath expr="//button[@name='action_cancel']" position="after">
46                         <button name="ship_cancel" states="shipping_except" string="Cancel"/>
47                     </xpath>
48                     <field name="state" position="replace">
49                         <field name="state" widget="statusbar" statusbar_visible="draft,sent,progress,invoiced,done" statusbar_colors='{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}'/>
50                     </field>
51                    <field name="shop_id" position="replace">
52                         <field name="shop_id" on_change="onchange_shop_id(shop_id)" widget="selection" groups="stock.group_locations"/>
53                    </field>
54                    <field name="product_id" position="replace">
55                        <field name="product_id"
56                        context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
57                        groups="base.group_user" 
58                        on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, context)"/>
59                    </field>
60                    <field name="product_uom_qty" position="replace">
61                        <field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
62                              name="product_uom_qty" class="oe_inline"
63                            on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, product_packaging, parent.fiscal_position, True, context)"/>
64                    </field>
65
66                    <field name='invoiced' position="after">
67                        <field name="shipped"/>
68                        <field name="invoice_exists" invisible="1"/>
69                    </field>
70                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='type']" position="before">                   
71                        <label for="delay"/>
72                        <div>
73                            <field name="delay" class="oe_inline"/> days
74                        </div>
75                    </xpath>
76                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='address_allotment_id']" position="after">
77                        <field name="property_ids" widget="many2many_tags"
78                             groups="sale.group_mrp_properties"/>
79                    </xpath>
80                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position="before">
81                        <field name="product_packaging" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" on_change="product_packaging_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, parent.partner_id, product_packaging, True, context)" domain="[('product_id','=',product_id)]" groups="product.group_stock_packaging"  />
82                    </xpath>
83                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/div/field[@name='invoice_lines']" position="after">
84                        <label for="move_ids"/>
85                        <field name="move_ids" widget="many2many"/>
86                    </xpath>
87                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='sequence']" position="after">
88                        <field name="delay" invisible="1"/>
89                    </xpath>
90                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='tax_id']" position="after">
91                        <field name="type" invisible="1"/>
92                    </xpath>
93                    <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='th_weight']" position="after">
94                        <field name="product_packaging" invisible="1"/>
95                    </xpath>
96                    <xpath expr="//group[@name='sales_person']" position="before">
97                         <group name="logistics">
98                             <field name="incoterm" widget="selection" groups="base.group_user"/>
99                             <field name="picking_policy" required="True"/>
100                             <field name="order_policy" on_change="shipping_policy_change(order_policy)"/>
101                             <field name="invoice_quantity" invisible="True"/>
102                         </group>
103                    </xpath>
104                 </data>
105            </field>
106         </record>
107
108     </data>
109 </openerp>