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="arch" type="xml">
22 <field name="name" position="after">
23 <field name="warehouse_id"/>
28 <menuitem action="sale.action_shop_form" id="menu_action_shop_form" parent="base.menu_base_config" sequence="35" groups="stock.group_locations"/>
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">
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"/>
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"/>
45 <xpath expr="//button[@name='action_cancel']" position="after">
46 <button name="ship_cancel" states="shipping_except" string="Cancel Order"/>
48 <field name="state" position="attributes">
49 <attribute name="statusbar_colors" t-translate="off">{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}</attribute>
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,False,product_uos_qty,False,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, 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 <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/form[@string='Sales Order Lines']/group/group/field[@name='type']" position="before">
73 <field name="delay" class="oe_inline"/> days
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"/>
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" />
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"/>
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"/>
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"/>
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"/>
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"/>
108 <record id="view_res_partner_tree_type" model="ir.ui.view">
109 <field name="name">res.partner.tree.inherit.type</field>
110 <field name="model">res.partner</field>
111 <field name="inherit_id" ref="base.view_partner_tree"/>
112 <field name="arch" type="xml">
113 <field name="parent_id" position="after">
114 <field name="type" invisible="context.get('hide_type', 1)"/>
119 <!-- On the customer/supplier form if "Allow a different address for
120 delivery and invoicing" is set add "Contact Details" in the more menu
121 showing the list of contact with their types -->
123 id="res_partner_rule_children"
124 name="Contact Details"
125 context="{'default_parent_id': active_id, 'hide_type': 0}"
126 domain="[('parent_id','=',active_id)]"
127 res_model="res.partner"
128 src_model="res.partner"
129 view_mode="tree,form,kanban"
131 groups="sale.group_delivery_invoice_address"