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