2012-07-26 20:56:59 +00:00
<?xml version="1.0"?>
<openerp >
<data >
2012-09-09 10:11:56 +00:00
<record id= "view_sale_shop_form_inherit" model= "ir.ui.view" >
<field name= "name" > sale.shop.inherit.form</field>
2012-07-26 20:56:59 +00:00
<field name= "model" > sale.shop</field>
<field name= "inherit_id" ref= "sale.view_shop_form" />
<field name= "arch" type= "xml" >
2012-07-31 11:13:23 +00:00
<xpath expr= "//group[@name='shop']" position= "before" >
2012-09-09 10:11:56 +00:00
<label for= "warehouse_id" class= "oe_edit_only" />
<h2 > <field name= "warehouse_id" required= "1" /> </h2>
2012-07-26 20:56:59 +00:00
</xpath>
</field>
2012-07-31 11:13:23 +00:00
</record>
2012-09-09 10:11:56 +00:00
2012-07-26 20:56:59 +00:00
<record id= "view_shop_tree_inherit" model= "ir.ui.view" >
<field name= "name" > sale.shop.sale.stock</field>
<field name= "model" > sale.shop</field>
<field name= "inherit_id" ref= "sale.view_shop_tree" />
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<field name= "name" position= "after" >
<field name= "warehouse_id" />
</field>
</field>
</record>
2012-09-09 10:11:56 +00:00
<menuitem action= "sale.action_shop_form" id= "menu_action_shop_form" parent= "base.menu_base_config" sequence= "35" groups= "stock.group_locations" />
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= "type" > form</field>
<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>
2012-09-09 10:11:56 +00:00
<xpath expr= "//button[@name='action_button_confirm']" position= "after" >
2012-09-19 09:38:42 +00:00
<button name= "action_view_invoice" string= "View Invoice" type= "object" class= "oe_highlight"
attrs="{'invisible': [('invoice_exists', '=', False)]}"/>
2012-07-26 20:56:59 +00:00
</xpath>
2012-09-19 09:38:42 +00:00
<xpath expr= "//button[@name='action_view_invoice']" position= "after" >
<button name= "action_view_delivery" string= "View Delivery Order" type= "object" class= "oe_highlight"
attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"/> </xpath>
2012-09-09 10:11:56 +00:00
<xpath expr= "//button[@name='action_cancel']" position= "after" >
2012-07-26 20:56:59 +00:00
<button name= "ship_cancel" states= "shipping_except" string= "Cancel" />
</xpath>
<field name= "state" position= "replace" >
<field name= "state" widget= "statusbar" statusbar_visible= "draft,sent,progress,invoiced,done" statusbar_colors= '{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}' />
</field>
2012-09-09 10:11:56 +00:00
2012-07-26 20:56:59 +00:00
<field name= "product_id" position= "replace" >
<field name= "product_id"
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
groups="base.group_user"
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)"/>
</field>
<field name= "product_uom_qty" position= "replace" >
<field context= "{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
name="product_uom_qty" class="oe_inline"
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)"/>
</field>
<field name= "shop_id" position= "replace" >
2012-09-09 10:11:56 +00:00
<field name= "shop_id" on_change= "onchange_shop_id(shop_id)" widget= "selection" groups= "stock.group_locations" />
2012-07-26 20:56:59 +00:00
</field>
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>
2012-07-26 20:56:59 +00:00
<field name= "invoice_ids" position= "after" >
<separator string= "Delivery Orders" />
<field name= "picking_ids" context= "{'default_type': 'out'}" >
<tree colors= "blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and min_date < current_date" string= "Delivery Orders" >
<field name= "name" />
<field name= "partner_id" string= "Customer" />
<field name= "min_date" />
<field name= "state" />
<button name= "action_process" states= "assigned" string= "Deliver" type= "object" icon= "gtk-go-forward" context= "{'default_type': 'out'}" />
</tree>
</field>
</field>
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='th_weight']" position= "before" >
2012-07-26 20:56:59 +00:00
<label for= "delay" />
<div >
<field name= "delay" class= "oe_inline" /> days
</div>
<field name= "type" />
2012-07-27 07:17:08 +00:00
</xpath>
<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"/>
2012-07-27 07:17:08 +00:00
</xpath>
<xpath expr= "//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position= "before" >
2012-07-26 20:56:59 +00:00
<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" colspan= "3" />
2012-07-27 07:17:08 +00:00
</xpath>
<xpath expr= "//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/div/field[@name='invoice_lines']" position= "after" >
2012-07-26 20:56:59 +00:00
<label for= "move_ids" />
<field name= "move_ids" widget= "many2many" />
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='tax_id']" position= "after" >
<field name= "type" 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" />
<field name= "order_policy" on_change= "shipping_policy_change(order_policy)" />
<field name= "invoice_quantity" invisible= "True" />
</group>
</xpath>
2012-07-26 20:56:59 +00:00
</data>
</field>
</record>
</data>
</openerp>