1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="sale.action_order_line_tree2" model="ir.actions.act_window">
5 <field name="domain">[('layout_type','=', 'article')]</field>
8 <record model="ir.ui.view" id="view_order_form_inherit_1">
9 <field name="name">sale.order.form.inherit_1</field>
10 <field name="model">sale.order</field>
11 <field name="inherit_id" ref="sale.view_order_form"/>
12 <field name="priority">30</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <xpath expr="/form/notebook/page/field[@name='order_line']" position="replace">
16 <field name="abstract_line_ids" colspan="4" nolabel="1" widget="one2many_list">
17 <form string="Sale Order Lines">
19 <page string="Order Line">
20 <separator colspan="4" string="Automatic Declaration"/>
22 context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
24 attrs="{'readonly':[('layout_type','!=','article')]}"
25 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, parent.date_order, product_packaging, parent.fiscal_position)"
28 context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
29 name="product_uom_qty"
30 attrs="{'readonly':[('layout_type','!=','article')]}"
31 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, parent.date_order, product_packaging, parent.fiscal_position)"
33 <field name="product_uom"
35 attrs="{'readonly':[('layout_type','!=','article')], 'required':[('layout_type','not in',['title','text','subtotal','line','break'])]}"
36 on_change="product_uom_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, parent.date_order)"/>
38 name="product_packaging"
39 attrs="{'readonly':[('layout_type','!=','article')]}"
40 context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
41 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, parent.date_order, product_packaging, parent.fiscal_position)"
42 domain="[('product_id','=',product_id)]"
43 groups="base.group_extended"/>
44 <separator colspan="4" string="Manual Description" />
45 <field name="layout_type" on_change="onchange_sale_order_line_view(layout_type)"/>
46 <field name="sequence" string="Seq."/>
47 <field colspan="4" name="name" select="2" attrs="{'readonly':[('layout_type','in',('line','break'))] }"/>
48 <field name="price_unit" select="2" attrs="{'readonly':[('layout_type','!=','article')],'required':[('layout_type','not in',['title','text','subtotal','line','break'])]}"/>
49 <field name="discount" attrs="{'readonly':[('layout_type','!=','article')]}"/>
50 <field name="type" attrs="{'readonly':[('layout_type','!=','article')]}"/>
51 <field name="delay" select="2" attrs="{'readonly':[('layout_type','!=','article')]}"/>
52 <field colspan="4" name="tax_id" domain="[('parent_id','=',False)]" attrs="{'readonly':[('layout_type','!=','article')]}"/>
53 <separator colspan="4" string="States"/>
54 <field name="state" select="2"/>
55 <group col="3" colspan="2">
56 <field name="invoiced" select="2"/>
57 <button colspan="1" name="%(sale.action_view_sale_order_line_make_invoice)d" states="confirmed" string="Make Invoice" type="action"/>
60 <page groups="base.group_extended" string="Extra Info">
61 <field groups="product.group_uos" name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
62 <field groups="product.group_uos" name="product_uos"/>
63 <field name="address_allotment_id" select="2"/>
64 <separator colspan="4" string="Properties"/>
65 <field colspan="4" name="property_ids" nolabel="1"/>
68 <field colspan="4" name="notes" nolabel="1"/>
70 <page string="History" groups="base.group_extended">
71 <separator colspan="4" string="Invoice Lines"/>
72 <field colspan="4" name="invoice_lines" nolabel="1"/>
73 <separator colspan="4" string="Stock Moves"/>
74 <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
78 <tree string="Sales order lines">
79 <field colspan="4" name="name"/>
80 <field name="product_uom_qty" string="Qty"/>
81 <field name="product_uom" string="UoM"/>
82 <field name="discount"/>
83 <field name="price_unit"/>
84 <!-- field name="price_net"/-->
85 <field name="price_subtotal"/>
86 <field name="sequence"/>