[RENAME] account_product_template -> product_email_template, to avoid
[odoo/odoo.git] / addons / account / res_config_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="open_account_charts_modules" model="ir.actions.act_window">
6             <field name="name">Chart Templates</field>
7             <field name="res_model">ir.module.module</field>
8             <field name="view_mode">kanban,tree,form</field>
9             <field name="context" eval="{'search_default_category_id': ref('base.module_category_localization_account_charts')}"/>
10             <field name="search_view_id" ref="base.view_module_filter"/>
11         </record>
12
13         <record id="view_account_config_settings" model="ir.ui.view">
14             <field name="name">account settings</field>
15             <field name="model">account.config.settings</field>
16             <field name="arch" type="xml">
17                 <form string="Configure Accounting" version="7.0" class="oe_form_configuration">
18                     <header>
19                         <button string="Apply" type="object" name="execute" class="oe_highlight"/>
20                         or
21                         <button string="Cancel" type="object" name="cancel" class="oe_link"/>
22                     </header>
23
24                     <field name="has_default_company" invisible="1" />
25                     <field name="has_chart_of_accounts" invisible="1"/>
26                     <field name="complete_tax_set" invisible="1"/>
27                     <field name="has_fiscal_year" invisible="1"/>
28                     <separator string="Chart of Accounts" groups="base.group_multi_company"/>
29                     <group groups="base.group_multi_company">
30                         <label for="id" string="Chart of Accounts"/>
31                         <div>
32                             <div attrs="{'invisible': [('has_default_company', '=', True)]}">
33                                 <label for="company_id" string="Select Company"/>
34                                 <field name="company_id"
35                                     widget="selection"
36                                     on_change="onchange_company_id(company_id, context)"
37                                     class="oe_inline"/>
38                             </div>
39                             <div>
40                                 <field name="expects_chart_of_accounts" class="oe_inline"/>
41                                 <label for="expects_chart_of_accounts"/>
42                             </div>
43                         </div>
44                     </group>
45                     <separator string="Chart of Accounts" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}"/>
46                     <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
47                         <label for="id" string="Chart of Account"/>
48                         <div>
49                             <div>
50                                 <label for="chart_template_id"/>
51                                 <field name="chart_template_id"
52                                     widget="selection"
53                                     domain="[('visible','=', True)]"
54                                     on_change="onchange_chart_template_id(chart_template_id)"
55                                     class="oe_inline"/>
56                                 <button string="Install more chart templates"
57                                     icon="gtk-go-forward"
58                                     name="%(open_account_charts_modules)d"
59                                     type="action"
60                                     class="oe_link"/>
61                             </div>
62                             <div groups="account.group_account_user">
63                                 <label for="code_digits"/>
64                                 <field name="code_digits" class="oe_inline"/>
65                             </div>
66                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
67                                 <label for="sale_tax"/>
68                                 <field name="sale_tax"
69                                     domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
70                                     class="oe_inline"/>
71                             </div>
72                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
73                                 <label for="purchase_tax"/>
74                                 <field name="purchase_tax"
75                                     domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
76                                     class="oe_inline"/>
77                             </div>
78                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
79                                 <label for="sale_tax_rate"/>
80                                 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/>
81                             </div>
82                             <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
83                                 <label for="purchase_tax_rate"/>
84                                 <field name="purchase_tax_rate" />
85                             </div>
86                         </div>
87                     </group>
88                     <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
89                     <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
90                         <label for="id" string="Fiscal Year"/>
91                         <div>
92                             <div>
93                                 <label for="date_start" string="Date Range"/>
94                                 <field name="date_start"
95                                     on_change="onchange_start_date(date_start)"
96                                     class="oe_inline"/> -
97                                 <field name="date_stop" class="oe_inline"/>
98                             </div>
99                             <div>
100                                 <label for="period"/>
101                                 <field name="period" class="oe_inline"/>
102                             </div>
103                         </div>
104                     </group>
105                     <separator string="Accounting &amp; Finance"/>
106                     <group>
107                         <label for="id" string="Options"/>
108                         <div name="account_config">
109                             <div>
110                                 <label for="currency_id"/>
111                                 <field name="currency_id" class="oe_inline"/>
112                             </div>
113                             <div>
114                                 <label for="decimal_precision"/>
115                                 <field name="decimal_precision" class="oe_inline"/>
116                             </div>
117                             <div>
118                                 <label for="tax_calculation_rounding_method"/>
119                                 <field name="tax_calculation_rounding_method" class="oe_inline"/>
120                             </div>
121                         </div>
122                         <label for="id" string="Features"/>
123                         <div>
124                             <div name="group_multi_currency">
125                                 <field name="group_multi_currency" class="oe_inline"/>
126                                 <label for="group_multi_currency"/>
127                             </div>
128                             <div>
129                                 <field name="module_account_accountant" class="oe_inline"/>
130                                 <label for="module_account_accountant"/>
131                             </div>
132                             <div>
133                                 <field name="group_analytic_accounting" class="oe_inline" on_change="onchange_analytic_accounting(group_analytic_accounting, context)"/>
134                                 <label for="group_analytic_accounting"/>
135                             </div>
136                             <div>
137                                 <field name="module_account_asset" class="oe_inline"/>
138                                 <label for="module_account_asset"/>
139                             </div>
140                             <div>
141                                 <field name="module_account_budget" class="oe_inline"/>
142                                 <label for="module_account_budget"/>
143                             </div>
144                         </div>
145                     </group>
146                     <separator string="eInvoicing &amp; Payments"/>
147                     <group>
148                         <label for="id" string="Customer"/>
149                         <div>
150                             <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
151                                 <label for="default_sale_tax"/>
152                                 <field name="default_sale_tax"
153                                     domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
154                                     class="oe_inline"/>
155                             </div>
156                             <div>
157                                 <label for="sale_sequence_next"/>
158                                 <field name="sale_sequence_prefix"
159                                     class="oe_inline"
160                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
161                                 <field name="sale_sequence_next"
162                                     class="oe_inline"
163                                     attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
164                             </div>
165                             <div>
166                                 <label for="sale_refund_sequence_next"/>
167                                 <field name="sale_refund_sequence_prefix"
168                                     class="oe_inline"
169                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
170                                 <field name="sale_refund_sequence_next"
171                                     class="oe_inline"
172                                     attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
173                             </div>
174                             <div>
175                                 <field name="group_proforma_invoices" class="oe_inline"/>
176                                 <label for="group_proforma_invoices"/>
177                             </div>
178                             <div>
179                                 <field name="module_account_voucher" class="oe_inline"/>
180                                 <label for="module_account_voucher"/>
181                             </div>
182                             <div>
183                                 <field name="module_account_followup" class="oe_inline"/>
184                                 <label for="module_account_followup"/>
185                             </div>
186                             <div>
187                                 <field name="module_product_email_template" class="oe_inline"/>
188                                 <label for="module_product_email_template"/>
189                             </div>
190                         </div>
191                     </group>
192                     <group>
193                         <label for="id" string="Supplier"/>
194                         <div name="other_cofing">
195                             <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
196                                 <label for="default_purchase_tax"/>
197                                 <field name="default_purchase_tax"
198                                     domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
199                                     class="oe_inline"/>
200                             </div>
201                             <div>
202                                 <label for="purchase_sequence_next"/>
203                                 <field name="purchase_sequence_prefix"
204                                     class="oe_inline"
205                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
206                                 <field name="purchase_sequence_next"
207                                     class="oe_inline"
208                                     attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
209                             </div>
210                             <div>
211                                 <label for="purchase_refund_sequence_next"/>
212                                 <field name="purchase_refund_sequence_prefix"
213                                     class="oe_inline"
214                                     help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
215                                 <field name="purchase_refund_sequence_next"
216                                     class="oe_inline"
217                                     attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
218                             </div>
219                             <div>
220                                 <field name="module_account_payment" class="oe_inline"/>
221                                 <label for="module_account_payment"/>
222                             </div>
223                             <div>
224                                 <field name="module_account_check_writing" class="oe_inline"/>
225                                 <label for="module_account_check_writing"/>
226                             </div>
227                             <div>
228                                 <field name="group_check_supplier_invoice_total" class="oe_inline"/>
229                                 <label for="group_check_supplier_invoice_total"/>
230                             </div>
231                         </div>
232                     </group>
233                     <separator string="Bank &amp; Cash"/>
234                     <group name="bank_cash">
235                         <label for="id" string="Configuration"/>
236                         <div>
237                             <div>
238                                 <label for="company_footer"/>
239                                 <button name="open_company_form" type="object"
240                                     string="Configure your company bank accounts" icon="gtk-go-forward"
241                                     class="oe_inline oe_link"/>
242                                 <field name="company_footer"/>
243                             </div>
244                             <div>
245                                 <label for="paypal_account"/>
246                                 <field name="paypal_account" placeholder="e.g. sales@openerp.com" class="oe_inline"/>
247                             </div>
248                         </div>
249                     </group>
250                     <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
251                     <group name="analytic_account_sale" invisible="1">
252                         <label for="id" string="Sale"/>
253                         <div/>
254                     </group>
255                     <group name="analytic_account_purchase" invisible="1">
256                         <label for="id" string="Purchase"/>
257                         <div/>
258                     </group>
259                     <field name="sale_journal_id" invisible="1"/>
260                     <field name="sale_refund_journal_id" invisible="1"/>
261                     <field name="purchase_journal_id" invisible="1"/>
262                     <field name="purchase_refund_journal_id" invisible="1"/>
263                 </form>
264             </field>
265         </record>
266
267         <record id="action_account_config" model="ir.actions.act_window">
268             <field name="name">Configure Accounting</field>
269             <field name="type">ir.actions.act_window</field>
270             <field name="res_model">account.config.settings</field>
271             <field name="view_mode">form</field>
272             <field name="target">inline</field>
273         </record>
274
275         <menuitem id="menu_account_config" name="Invoicing" parent="base.menu_config"
276             sequence="14" action="action_account_config"/>
277
278     </data>
279 </openerp>