[FIX] analytic_contract_hr_expense: fixed amounts in billing table + view inheritancy
[odoo/odoo.git] / addons / sale_layout / sale_layout_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3         <data>
4              <record id="sale.action_order_line_tree2" model="ir.actions.act_window">
5                <field name="domain">[('layout_type','=', 'article')]</field>
6              </record>
7
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">
18                             <notebook>
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"/>
23                                     <field colspan="3"
24                                         context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
25                                         name="product_id"
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)"
28                                         select="1"/>
29                                     <field
30                                         name="name" required="0"
31                                         attrs="{'invisible':[('layout_type','in',('line','break','subtotal'))], 'required':[('layout_type','not in',['line','break'])]}"/>
32
33                                     <field
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"
39                                         nolabel="1"
40                                         groups="product.group_uom"
41                                         required="0"
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'])]}"/>
46
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"/>
49                                     <newline/>
50
51                                     <field
52                                         name="product_packaging"
53                                         colspan="3"
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"/>
59                                     <field
60                                         name="discount"
61                                         attrs="{'invisible':[('layout_type','!=','article')]}"/>
62
63                                     <group colspan="5"
64                                         attrs="{'invisible':[('layout_type','not in', ['article','text'])]}">
65                                         <separator colspan="4" string="Notes"/>
66                                         <field colspan="4" name="notes" nolabel="1"/>
67                                     </group>
68
69                                     <group colspan="5"
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"/>
73                                     </group>
74
75                                     <group col="5" colspan="5" attrs="{'invisible':[('layout_type','!=','article')]}">
76                                         <separator colspan="5" string="States"/>
77                                         <field name="state"/>
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"/>
80                                     </group>
81                                 </group>
82                                 </page>
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"/>
89                                 </page>
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"/>
95                                 </page>
96                             </notebook>
97                         </form>
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"/>
107                         </tree>
108                     </field>
109                 </xpath>
110             </field>
111         </record>
112
113     </data>
114 </openerp>