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">1000</field>
13 <field name="type">form</field>
14 <field name="arch" type="xml">
15 <xpath expr="//field[@name='order_line']" position="replace">
16 <field name="abstract_line_ids">
17 <form string="Order Line">
19 <page string="Order Line">
20 <group colspan="4" col="5">
21 <field colspan="3" name="layout_type" on_change="onchange_sale_order_line_view(layout_type)"/>
22 <field name="sequence" groups="base.group_no_one"/>
24 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
26 attrs="{'invisible':[('layout_type','!=','article')]}"
27 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, True, parent.date_order, product_packaging, parent.fiscal_position, False, context)"
30 name="name" required="0"
31 attrs="{'invisible':[('layout_type','in',('line','break','subtotal'))], 'required':[('layout_type','not in',['line','break'])]}"/>
34 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
35 name="product_uom_qty"
36 attrs="{'invisible':[('layout_type','!=','article')]}"
37 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)"/>
38 <field name="product_uom"
40 groups="product.group_uom"
42 attrs="{'invisible':[('layout_type','!=','article')], 'required':[('layout_type','not in',['title','text','subtotal','line','break'])]}"
43 on_change="product_uom_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, context)"/>
44 <field name="price_unit"
45 attrs="{'invisible':[('layout_type','!=','article')],'required':[('layout_type','not in',['title','text','subtotal','line','break'])]}"/>
47 <field groups="product.group_uos" name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
48 <field groups="product.group_uos" name="product_uos" nolabel="1"/>
52 name="product_packaging"
54 attrs="{'invisible':[('layout_type','!=','article')]}"
55 context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
56 on_change="product_packaging_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, parent.partner_id, product_packaging, True, context)"
57 domain="[('product_id','=',product_id)]"
58 groups="product.group_stock_packaging"/>
61 attrs="{'invisible':[('layout_type','!=','article')]}"/>
64 attrs="{'invisible':[('layout_type','not in', ['article','text'])]}">
65 <separator colspan="4" string="Notes"/>
66 <field colspan="4" name="notes" nolabel="1"/>
70 attrs="{'invisible':[('layout_type','!=','article')]}">
71 <separator colspan="4" string="Taxes"/>
72 <field colspan="4" name="tax_id" domain="[('parent_id','=',False)]" nolabel="1"/>
75 <group col="5" colspan="5" attrs="{'invisible':[('layout_type','!=','article')]}">
76 <separator colspan="5" string="States"/>
78 <field name="invoiced"/>
79 <button colspan="1" name="%(sale.action_view_sale_order_line_make_invoice)d" states="confirmed" string="Make Invoice" type="action"/>
83 <page string="Extra Info" attrs="{'invisible':[('layout_type','!=','article')]}">
84 <field name="type" attrs="{'invisible':[('layout_type','!=','article')]}"/>
85 <field name="delay" select="2" attrs="{'invisible':[('layout_type','!=','article')]}"/>
86 <field name="address_allotment_id" select="2"/>
87 <separator colspan="4" string="Properties"/>
88 <field colspan="4" name="property_ids" nolabel="1"/>
90 <page string="History" attrs="{'invisible':[('layout_type','!=','article')]}">
91 <separator colspan="4" string="Invoice Lines"/>
92 <field colspan="4" name="invoice_lines" nolabel="1"/>
93 <separator colspan="4" string="Stock Moves"/>
94 <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
98 <tree string="Sales order lines">
99 <field colspan="4" name="name"/>
100 <field name="product_uom_qty" string="Qty"/>
101 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
102 <field name="discount"/>
103 <field name="price_unit"/>
104 <!-- field name="price_net"/-->
105 <field name="price_subtotal"/>
106 <field name="sequence"/>