2012-07-26 20:56:59 +00:00
<?xml version="1.0"?>
<openerp >
<data >
2012-09-28 10:15:31 +00:00
2012-07-26 20:56:59 +00:00
<record id= "view_order_form_inherit" model= "ir.ui.view" >
<field name= "name" > sale.order.form.sale.stock</field>
<field name= "model" > sale.order</field>
<field name= "inherit_id" ref= "sale.view_order_form" />
<field name= "arch" type= "xml" >
<data >
2012-09-09 10:11:56 +00:00
<xpath expr= "//button[@name='invoice_corrected']" position= "after" >
2012-07-26 20:56:59 +00:00
<button name= "ship_recreate" states= "shipping_except" string= "Recreate Delivery Order" />
<button name= "ship_corrected" states= "shipping_except" string= "Ignore Exception" />
</xpath>
2013-07-11 13:40:44 +00:00
<xpath expr= "//button[@name='action_view_invoice']" position= "after" >
2012-11-02 12:48:24 +00:00
<field name= "picking_ids" invisible= "1" />
2012-09-19 09:38:42 +00:00
<button name= "action_view_delivery" string= "View Delivery Order" type= "object" class= "oe_highlight"
2013-11-08 16:52:17 +00:00
attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual', 'done')),('shipped','=',True)]}" groups="base.group_user"/>
2013-07-11 13:40:44 +00:00
</xpath>
2012-09-09 10:11:56 +00:00
<xpath expr= "//button[@name='action_cancel']" position= "after" >
2013-02-25 13:38:04 +00:00
<button name= "ship_cancel" states= "shipping_except" string= "Cancel Order" />
2012-07-26 20:56:59 +00:00
</xpath>
2014-02-10 13:46:03 +00:00
<field name= "state" position= "attributes" >
<attribute name= "statusbar_colors" > {"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}</attribute>
2012-07-26 20:56:59 +00:00
</field>
2013-01-31 06:26:13 +00:00
<field name= "company_id" position= "replace" >
<field name= "company_id" readonly= "True" />
</field>
2013-09-05 09:24:30 +00:00
<field name= "client_order_ref" position= "after" >
2014-03-06 11:30:21 +00:00
<field name= "warehouse_id" on_change= "onchange_warehouse_id(warehouse_id)" options= "{'no_create': True}" groups= "stock.group_locations" />
2013-01-31 06:26:13 +00:00
</field>
2013-10-22 12:01:00 +00:00
<xpath expr= "//field[@name='order_line']/tree//field[@name='product_id']" position= "replace" >
2012-07-26 20:56:59 +00:00
<field name= "product_id"
2013-01-22 11:08:57 +00:00
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
2012-07-26 20:56:59 +00:00
groups="base.group_user"
2014-02-03 17:30:00 +00:00
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)"/>
2013-10-10 08:14:42 +00:00
</xpath>
2013-10-22 12:01:00 +00:00
<xpath expr= "//field[@name='order_line']/tree//field[@name='product_uom_qty']" position= "replace" >
<field context= "{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
name="product_uom_qty"
2013-10-23 08:57:58 +00:00
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)"/>
2013-10-22 12:01:00 +00:00
</xpath>
<xpath expr= "//field[@name='order_line']/form//field[@name='product_id']" position= "replace" >
<field name= "product_id"
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
groups="base.group_user"
2013-10-23 09:40:25 +00:00
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)"/>
2013-10-22 12:01:00 +00:00
</xpath>
<xpath expr= "//field[@name='order_line']/form//field[@name='product_uom_qty']" position= "replace" >
2013-01-22 11:08:57 +00:00
<field context= "{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
2012-07-26 20:56:59 +00:00
name="product_uom_qty" class="oe_inline"
2013-10-23 09:40:25 +00:00
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)"/>
2013-10-10 08:14:42 +00:00
</xpath>
2012-09-20 13:17:11 +00:00
2012-09-09 10:11:56 +00:00
<field name= 'invoiced' position= "after" >
2012-07-26 20:56:59 +00:00
<field name= "shipped" />
2012-09-19 09:38:42 +00:00
<field name= "invoice_exists" invisible= "1" />
2012-09-09 10:11:56 +00:00
</field>
2013-09-10 15:48:22 +00:00
<xpath expr= "//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position= "after" >
2012-07-26 20:56:59 +00:00
<label for= "delay" />
<div >
<field name= "delay" class= "oe_inline" /> days
</div>
2012-07-27 07:17:08 +00:00
</xpath>
2013-07-09 15:00:27 +00:00
<!-- <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='address_allotment_id']" position="after">
2012-07-26 20:56:59 +00:00
<field name= "property_ids" widget= "many2many_tags"
2012-09-09 12:32:16 +00:00
groups="sale.group_mrp_properties"/>
2013-07-09 15:00:27 +00:00
</xpath> -->
2012-07-27 07:17:08 +00:00
<xpath expr= "//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position= "before" >
2013-01-22 11:08:57 +00:00
<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_id','=',product_id)]" groups= "product.group_stock_packaging" />
2012-07-27 07:17:08 +00:00
</xpath>
2012-07-26 20:56:59 +00:00
<xpath expr= "//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='sequence']" position= "after" >
<field name= "delay" invisible= "1" />
</xpath>
<xpath expr= "//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='th_weight']" position= "after" >
<field name= "product_packaging" invisible= "1" />
</xpath>
2012-09-19 11:40:33 +00:00
<xpath expr= "//group[@name='sales_person']" position= "before" >
<group name= "logistics" >
<field name= "incoterm" widget= "selection" groups= "base.group_user" />
<field name= "picking_policy" required= "True" />
2013-08-03 19:03:59 +00:00
<field name= "order_policy" />
2012-09-19 11:40:33 +00:00
</group>
</xpath>
2013-10-08 14:32:31 +00:00
<xpath expr= "//field[@name='order_line']/form/group/group/field[@name='price_unit']" position= "before" >
2013-10-08 14:42:45 +00:00
<field name= "route_id" groups= "sale_stock.group_route_so_lines" />
2013-10-08 14:32:31 +00:00
</xpath>
<xpath expr= "//field[@name='order_line']/tree/field[@name='price_unit']" position= "before" >
2013-10-08 14:42:45 +00:00
<field name= "route_id" groups= "sale_stock.group_route_so_lines" />
2013-10-08 14:32:31 +00:00
</xpath>
2012-07-26 20:56:59 +00:00
</data>
</field>
</record>
2013-02-23 00:56:35 +00:00
<record id= "view_res_partner_tree_type" model= "ir.ui.view" >
<field name= "name" > res.partner.tree.inherit.type</field>
<field name= "model" > res.partner</field>
<field name= "inherit_id" ref= "base.view_partner_tree" />
<field name= "arch" type= "xml" >
<field name= "parent_id" position= "after" >
<field name= "type" invisible= "context.get('hide_type', 1)" />
</field>
</field>
</record>
<!-- On the customer/supplier form if "Allow a different address for
delivery and invoicing" is set add "Contact Details" in the more menu
showing the list of contact with their types -->
<act_window
id="res_partner_rule_children"
name="Contact Details"
context="{'default_parent_id': active_id, 'hide_type': 0}"
domain="[('parent_id','=',active_id)]"
res_model="res.partner"
src_model="res.partner"
view_mode="tree,form,kanban"
view_type="form"
groups="sale.group_delivery_invoice_address"
/>
2013-08-04 13:40:14 +00:00
<record id= "view_picking_internal_search_inherit" model= "ir.ui.view" >
<field name= "name" > stock.picking.search.inherit</field>
<field name= "model" > stock.picking</field>
<field name= "inherit_id" ref= "stock.view_picking_internal_search" />
<field name= "arch" type= "xml" >
<xpath expr= "//field[@name='partner_id']" position= "before" >
<filter string= "To Invoice" name= "to_invoice" icon= "terp-dolar" domain= "[('invoice_state', '=', '2binvoiced')]" />
</xpath>
</field>
</record>
2013-10-08 14:32:31 +00:00
<record id= "view_order_form_inherit2" model= "ir.ui.view" >
<field name= "name" > sale.order.line.form.sale.stock.location</field>
<field name= "model" > sale.order.line</field>
<field name= "inherit_id" ref= "sale.view_order_line_form2" />
<field name= "arch" type= "xml" >
<data >
<xpath expr= "//field[@name='price_unit']" position= "before" >
2013-10-08 14:42:45 +00:00
<field name= "route_id" groups= "sale_stock.group_route_so_lines" />
2013-10-08 14:32:31 +00:00
</xpath>
</data>
</field>
</record>
<record id= "view_order_line_tree_inherit" model= "ir.ui.view" >
<field name= "name" > sale.order.line.tree.sale.stock.location</field>
<field name= "inherit_id" ref= "sale.view_order_line_tree" />
<field name= "model" > sale.order.line</field>
<field name= "arch" type= "xml" >
<xpath expr= "//field[@name='price_subtotal']" position= "before" >
2013-10-08 14:42:45 +00:00
<field name= "route_id" groups= "sale_stock.group_route_so_lines" />
2013-10-08 14:32:31 +00:00
</xpath>
</field>
</record>
2012-07-26 20:56:59 +00:00
</data>
</openerp>