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