4
<record model="ir.ui.view" id="portal_order_form">
5
<field name="name">Portal Order From</field>
6
<field name="model">sale.order</field>
7
<field name="type">form</field>
8
<field name="arch" type="xml">
9
<form string="Sales Order">
11
<page string="Sale Order">
12
<field name="name" select="1"/>
13
<group colspan="2" col="4">
14
<field name="shipped" select="1"/>
15
<field name="invoiced" select="1"/>
18
<field name="date_order" select="1"/>
19
<field name="shop_id" select="1" on_change="onchange_shop_id(shop_id)"/>
20
<field name="partner_id" select="1" on_change="onchange_partner_id(partner_id)" required="1"/>
21
<field name="partner_order_id" domain="[('partner_id','=',partner_id)]"/>
22
<field name="partner_invoice_id" domain="[('partner_id','=',partner_id)]"/>
23
<field name="partner_shipping_id" domain="[('partner_id','=',partner_id)]"/>
26
<field name="order_line" widget="one2many_list" colspan="4" nolabel="1" mode="tree,graph">
27
<form string="Sale Order Lines">
29
<page string="Order Line">
30
<separator string="Automatic Declaration" colspan="4"/>
31
<field name="product_uom_qty" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" select="1"/>
32
<field name="product_uom"/>
33
<field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" colspan="4" select="1"/>
35
<separator string="Manual Description" colspan="4"/>
36
<field name="name" colspan="4" select="1"/>
37
<field name="price_unit" select="1"/>
38
<field name="discount"/>
40
<field name="delay" select="1"/>
42
<field name="tax_id" colspan="4"/>
43
<separator string="States" colspan="4"/>
44
<field name="state" select="1"/>
45
<field name="invoiced" select="1"/>
46
</page><page string="Extra Info">
47
<field name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
48
<field name="product_uos" />
49
<field name="product_packaging" />
50
<field name="address_allotment_id" select="1"/>
52
</page><page string="History">
53
<separator string="Invoice Lines" colspan="4"/>
54
<field name="invoice_lines" colspan="4" nolabel="1"/>
59
<tree string="Sales Order Lines">
60
<field name="name" colspan="4"/>
61
<field name="product_id"/>
62
<field name="product_uom_qty" string="Qty"/>
63
<field name="product_uom" string="UoM"/>
64
<field name="discount"/>
65
<field name="price_unit"/>
66
<field name="price_net"/>
67
<field name="price_subtotal"/>
71
<group colspan="4" col="7">
72
<field name="amount_untaxed"/>
73
<field name="amount_tax"/>
74
<field name="amount_total"/>
77
<group colspan="4" col="13">
78
<field name="state" select="1"/>
82
<page string="Other data">
83
<field name="incoterm"/>
84
<field name="picking_policy" required="True"/>
85
<field name="user_id"/>
86
<field name="order_policy" />
87
<field name="origin"/>
88
<field name="invoice_quantity"/>
89
<field name="client_order_ref" />
91
</page><page string="History">
92
<separator string="Generated Invoices" colspan="4"/>
93
<field name="invoice_ids" colspan="4" nolabel="1"/>
94
<separator string="Generated Pickings" colspan="4"/>
95
<field name="picking_ids" colspan="4" nolabel="1"/>