5 <record id="view_order_form_inherit" model="ir.ui.view">
6 <field name="name">sale.order.form.sale.stock</field>
7 <field name="model">sale.order</field>
8 <field name="inherit_id" ref="sale.view_order_form"/>
9 <field name="arch" type="xml">
11 <xpath expr="//button[@name='invoice_corrected']" position="after">
12 <button name="ship_recreate" states="shipping_except" string="Recreate Delivery Order"/>
13 <button name="ship_corrected" states="shipping_except" string="Ignore Exception"/>
15 <xpath expr="//button[@name='action_view_invoice']" position="after">
16 <field name="picking_ids" invisible="1"/>
17 <button name="action_view_delivery" string="View Delivery Order" type="object" class="oe_highlight"
18 attrs="{'invisible': ['|',('picking_ids','=',False),('picking_ids','=',[])]}" groups="base.group_user"/>
20 <xpath expr="//button[@name='action_cancel']" position="after">
21 <button name="ship_cancel" states="shipping_except" string="Cancel Order"/>
23 <field name="state" position="attributes">
24 <attribute name="statusbar_colors">{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}</attribute>
26 <field name="company_id" position="replace">
27 <field name="company_id" readonly="True"/>
29 <field name="client_order_ref" position="after">
30 <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" options="{'no_create': True}" groups="stock.group_locations"/>
32 <xpath expr="//field[@name='order_line']/tree//field[@name='product_id']" position="replace">
33 <field name="product_id"
34 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
35 groups="base.group_user"
36 on_change="product_id_change_with_wh(parent.pricelist_id,product_id,product_uom_qty,False,product_uos_qty,False,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, parent.warehouse_id, context)"/>
38 <xpath expr="//field[@name='order_line']/tree//field[@name='product_uom_qty']" position="replace">
39 <field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
40 name="product_uom_qty"
41 on_change="product_id_change_with_wh(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, parent.warehouse_id, context)"/>
43 <xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="replace">
44 <field name="product_id"
45 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
46 groups="base.group_user"
47 on_change="product_id_change_with_wh(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, parent.warehouse_id, context)"/>
49 <xpath expr="//field[@name='order_line']/form//field[@name='product_uom_qty']" position="replace">
50 <field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
51 name="product_uom_qty" class="oe_inline"
52 on_change="product_id_change_with_wh(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, parent.warehouse_id, context)"/>
55 <field name='invoiced' position="after">
56 <field name="shipped"/>
57 <field name="invoice_exists" invisible="1"/>
59 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position="after">
62 <field name="delay" class="oe_inline"/> days
65 <!--<xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='address_allotment_id']" position="after">
66 <field name="property_ids" widget="many2many_tags"
67 groups="sale.group_mrp_properties"/>
69 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position="before">
70 <field name="product_packaging" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_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_tmpl_id','=',product_id)]" groups="product.group_stock_packaging" />
72 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='sequence']" position="after">
73 <field name="delay" invisible="1"/>
75 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='th_weight']" position="after">
76 <field name="product_packaging" invisible="1"/>
78 <xpath expr="//group[@name='sales_person']" position="before">
79 <group name="logistics">
80 <field name="incoterm" widget="selection" groups="base.group_user"/>
81 <field name="picking_policy" required="True"/>
82 <field name="order_policy"/>
85 <xpath expr="//field[@name='order_line']/form/group/group/field[@name='price_unit']" position="before">
86 <field name="route_id" groups="sale_stock.group_route_so_lines"/>
88 <xpath expr="//field[@name='order_line']/tree/field[@name='price_unit']" position="before">
89 <field name="route_id" groups="sale_stock.group_route_so_lines"/>
95 <record id="view_res_partner_tree_type" model="ir.ui.view">
96 <field name="name">res.partner.tree.inherit.type</field>
97 <field name="model">res.partner</field>
98 <field name="inherit_id" ref="base.view_partner_tree"/>
99 <field name="arch" type="xml">
100 <field name="parent_id" position="after">
101 <field name="type" invisible="context.get('hide_type', 1)"/>
106 <!-- On the customer/supplier form if "Allow a different address for
107 delivery and invoicing" is set add "Contact Details" in the more menu
108 showing the list of contact with their types -->
110 id="res_partner_rule_children"
111 name="Contact Details"
112 context="{'default_parent_id': active_id, 'hide_type': 0}"
113 domain="[('parent_id','=',active_id)]"
114 res_model="res.partner"
115 src_model="res.partner"
116 view_mode="tree,form,kanban"
118 groups="sale.group_delivery_invoice_address"
121 <record id="view_picking_internal_search_inherit" model="ir.ui.view">
122 <field name="name">stock.picking.search.inherit</field>
123 <field name="model">stock.picking</field>
124 <field name="inherit_id" ref="stock.view_picking_internal_search"/>
125 <field name="arch" type="xml">
126 <xpath expr="//field[@name='partner_id']" position="before">
127 <filter string="To Invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]"/>
133 <record id="view_order_form_inherit2" model="ir.ui.view">
134 <field name="name">sale.order.line.form.sale.stock.location</field>
135 <field name="model">sale.order.line</field>
136 <field name="inherit_id" ref="sale.view_order_line_form2"/>
137 <field name="arch" type="xml">
139 <xpath expr="//field[@name='price_unit']" position="before">
140 <field name="route_id" groups="sale_stock.group_route_so_lines" />
146 <record id="view_order_line_tree_inherit" model="ir.ui.view">
147 <field name="name">sale.order.line.tree.sale.stock.location</field>
148 <field name="inherit_id" ref="sale.view_order_line_tree"/>
149 <field name="model">sale.order.line</field>
150 <field name="arch" type="xml">
151 <xpath expr="//field[@name='price_subtotal']" position="before">
152 <field name="route_id" groups="sale_stock.group_route_so_lines"/>