[MERGE]: Merge with lp:openobject-addons
[odoo/odoo.git] / addons / sale / res_config_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="view_sales_config" model="ir.ui.view">
6             <field name="name">sale settings</field>
7             <field name="model">sale.config.settings</field>
8             <field name="inherit_id" ref="base_setup.view_sale_config_settings"/>
9             <field name="arch" type="xml">
10                 <div name="customer feature" position="before">
11                     <separator string="Invoicing Process"/>
12                     <group>
13                         <label for="id" string="Invoicing Process"/>
14                         <div>
15                             <div name="group_invoice_so_lines">
16                                 <field name="group_invoice_so_lines" class="oe_inline"/>
17                                 <label for="group_invoice_so_lines"/>
18                             </div>
19                             <div name="timesheet">
20                                 <field name="timesheet" class="oe_inline" on_change="onchange_timesheet(timesheet)"/>
21                                 <label for="timesheet"/>
22                             </div>
23                         </div>
24                     </group>
25                     <group name='default_options'>
26                         <label for="id" string="Default Options" attrs="{'invisible':[('module_account_analytic_analysis','=',False)]}"/>
27                         <div>
28                             <div name='time_unit' attrs="{'invisible': [('module_account_analytic_analysis','=',False)],'required':[('module_account_analytic_analysis','=',True)]}">
29                                 <label for="time_unit"/>
30                                 <field name="time_unit" domain="[('category_id.name','=','Working Time')]" class="oe_inline"/>
31                             </div>
32                         </div>
33                     </group>
34                 </div>
35                 <div name="Customer Features" position="inside">
36                     <div>
37                         <field name="group_sale_pricelist" class="oe_inline"/>
38                         <label for="group_sale_pricelist"/>
39                     </div>
40                     <div name="module_warning">
41                         <field name="module_warning" class="oe_inline"/>
42                         <label for="module_warning"/>
43                     </div>
44                 </div>
45                 <group name="Sale" position="before">
46                     <group>
47                         <label for="id" string="Warehouse Features"/>
48                         <div name="warehouse_features">
49                             <div name='module_sale_stock'>
50                                 <field name="module_sale_stock" class="oe_inline"/>
51                                 <label for="module_sale_stock"/>
52                             </div>
53                             <div name='module_sale_journal'>
54                                 <field name="module_sale_journal" class="oe_inline"/>
55                                 <label for="module_sale_journal"/>
56                             </div>
57                         </div>
58                     </group>
59                 </group>
60                 <group name="Sale" position="before">
61                     <group>
62                         <label for="id" string="Product Features"/>
63                         <div>
64                             <div>
65                                 <field name="group_uom" class="oe_inline"/>
66                                 <label for="group_uom"/>
67                             </div>
68                             <div>
69                                 <field name="group_discount_per_so_line" class="oe_inline"/>
70                                 <label for="group_discount_per_so_line"/>
71                             </div>
72                         </div>
73                     </group>
74                 </group>
75                 <div name="Sale Features" position="inside">
76                     <div name="module_sale_margin">
77                         <field name="module_sale_margin" class="oe_inline"/>
78                         <label for="module_sale_margin"/>
79                     </div>
80                 </div>
81                 <div name="customer feature" position="after">
82                     <separator string="Contracts Management"/>
83                     <p>
84                         Use contract to be able to manage your services with
85                         multiple invoicing as part of the same contract with
86                         your customer.
87                     </p>
88                     <group>
89                         <label for="id" string="Contract Feature"/>
90                         <div>
91                             <div>
92                                 <field name="module_account_analytic_analysis" on_change="onchange_timesheet(module_account_analytic_analysis)" class="oe_inline"/>
93                                 <label for="module_account_analytic_analysis"/>
94                             </div>
95                             <div attrs="{'invisible':[('module_account_analytic_analysis','=',False)]}">
96                                 <field name="module_analytic_user_function" class="oe_inline"/>
97                                 <label for="module_analytic_user_function"/>
98                             </div>
99                         </div>
100                     </group>
101                 </div>
102             </field>
103         </record>
104
105         <menuitem id="base.menu_sale_config" name="Sales" parent="base.menu_config"
106             sequence="1" action="base_setup.action_sale_config"/>
107
108         <record id="view_account_config" model="ir.ui.view">
109             <field name="name">account settings</field>
110             <field name="model">account.config.settings</field>
111             <field name="inherit_id" ref="account.view_account_config_settings"/>
112             <field name="priority" eval="16"/>
113             <field name="arch" type="xml">
114                 <separator name="analytic_account" position="attributes">
115                     <attribute name="invisible">0</attribute>
116                 </separator>
117                 <group name="analytic_account_sale" position="attributes">
118                     <attribute name="invisible">0</attribute>
119                 </group>
120                 <xpath expr="//group[@name='analytic_account_sale']/div" position="inside">
121                     <div>
122                         <field name="group_analytic_account_for_sales" class="oe_inline"/>
123                         <label for="group_analytic_account_for_sales"/>
124                     </div>
125                     <div>
126                         <field name="module_sale_analytic_plans" on_change="onchange_sale_analytic_plans(module_sale_analytic_plans)" class="oe_inline"/>
127                         <label for="module_sale_analytic_plans"/>
128                     </div>
129                 </xpath>
130             </field>
131         </record>
132     </data>
133 </openerp>