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>
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="type">tree</field>
22 <field name="arch" type="xml">
23 <field name="name" position="after">
24 <field name="warehouse_id"/>
29 <menuitem action="sale.action_shop_form" id="menu_action_shop_form" parent="base.menu_base_config" sequence="35" groups="stock.group_locations"/>
31 <record id="view_order_form_inherit" model="ir.ui.view">
32 <field name="name">sale.order.form.sale.stock</field>
33 <field name="model">sale.order</field>
34 <field name="inherit_id" ref="sale.view_order_form"/>
35 <field name="type">form</field>
36 <field name="arch" type="xml">
38 <xpath expr="//button[@name='invoice_corrected']" position="after">
39 <button name="ship_recreate" states="shipping_except" string="Recreate Delivery Order"/>
40 <button name="ship_corrected" states="shipping_except" string="Ignore Exception"/>
42 <xpath expr="//button[@name='action_view_invoice']" position="after">
43 <button name="action_view_delivery" string="View Delivery Order" type="object" class="oe_highlight"
44 attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"/> </xpath>
45 <xpath expr="//button[@name='action_cancel']" position="after">
46 <button name="ship_cancel" states="shipping_except" string="Cancel"/>
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"}'/>
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"/>
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, False, parent.date_order, product_packaging, parent.fiscal_position, True, context)"/>
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)"/>
66 <field name='invoiced' position="after">
67 <field name="shipped"/>
68 <field name="invoice_exists" invisible="1"/>
70 <field name="invoice_ids" position="after">
71 <separator string="Delivery Orders"/>
72 <field name="picking_ids" context="{'default_type': 'out'}">
73 <tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and min_date < current_date" string="Delivery Orders">
75 <field name="partner_id" string="Customer"/>
76 <field name="min_date"/>
78 <button name="action_process" states="assigned" string="Deliver" type="object" icon="gtk-go-forward" context="{'default_type': 'out'}"/>
82 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='th_weight']" position="before">
85 <field name="delay" class="oe_inline"/> days
89 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='address_allotment_id']" position="after">
90 <field name="property_ids" widget="many2many_tags"
91 groups="sale.group_mrp_properties"/>
93 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='tax_id']" position="before">
94 <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"/>
96 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/div/field[@name='invoice_lines']" position="after">
97 <label for="move_ids"/>
98 <field name="move_ids" widget="many2many"/>
100 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='sequence']" position="after">
101 <field name="delay" invisible="1"/>
103 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='tax_id']" position="after">
104 <field name="type" invisible="1"/>
106 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='th_weight']" position="after">
107 <field name="product_packaging" invisible="1"/>
109 <xpath expr="//group[@name='sales_person']" position="before">
110 <group name="logistics">
111 <field name="incoterm" widget="selection" groups="base.group_user"/>
112 <field name="picking_policy" required="True"/>
113 <field name="order_policy" on_change="shipping_policy_change(order_policy)"/>
114 <field name="invoice_quantity" invisible="True"/>