1 <?xml version="1.0" encoding="utf-8"?>
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"/>
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="type">form</field>
17 <field name="arch" type="xml">
18 <form string="Configure Accounting" version="7.0" class="oe_form_configuration">
20 <button string="Apply" type="object" name="execute" class="oe_highlight"/>
22 <button string="Cancel" type="object" name="cancel" class="oe_link"/>
25 <field name="has_default_company" invisible="1" />
26 <field name="has_chart_of_accounts" invisible="1"/>
27 <field name="complete_tax_set" invisible="1"/>
28 <field name="has_fiscal_year" invisible="1"/>
29 <separator string="Chart of Accounts" groups="base.group_multi_company"/>
30 <group groups="base.group_multi_company">
32 <field name="company_id" string="Select Company" widget="selection"
33 on_change="onchange_company_id(company_id)"
34 attrs="{'invisible': [('has_default_company', '=', True)]}"/>
35 <field name="expects_chart_of_accounts"/>
38 <group string="Select a Chart of Accounts to Install"
39 attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
41 <field name="chart_template_id" widget="selection" domain="[('visible','=', True)]"
42 on_change="onchange_chart_template_id(chart_template_id)"/>
43 <field name="code_digits" groups="account.group_account_user"/>
44 <field name="sale_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
45 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
46 <field name="purchase_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
47 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
48 <field name="sale_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}" on_change="onchange_tax_rate(sale_tax_rate)"/>
49 <field name="purchase_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}"/>
51 <button string="Install More Chart Templates" icon="gtk-go-forward"
52 name="%(open_account_charts_modules)d" type="action"/>
55 <group string="No Fiscal Year Defined for This Company"
56 attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
57 <label for="date_start" string="Date Range"/>
59 <field name="date_start" on_change="onchange_start_date(date_start)" class="oe_inline"/> -
60 <field name="date_stop" class="oe_inline"/>
62 <field name="period"/>
66 <group name="account_config">
67 <separator string="Accounting Configuration" colspan="2"/>
68 <field name="default_sale_tax" domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
69 attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
70 <field name="module_account_accountant"/>
71 <field name="currency_id"/>
72 <field name="decimal_precision"/>
73 <field name="default_purchase_tax" domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
74 attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
75 <field name="tax_calculation_rounding_method"/>
76 <field name="module_account_asset"/>
77 <field name="module_account_budget"/>
78 <separator string="Customer Invoices" colspan="2"/>
79 <label for="sale_sequence_next"/>
81 <field name="sale_sequence_prefix" class="oe_inline" nolabel="1"
82 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
83 <field name="sale_sequence_next" class="oe_inline" nolabel="1" attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
85 <label for="sale_refund_sequence_next"/>
87 <field name="sale_refund_sequence_prefix" class="oe_inline" nolabel="1"
88 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
89 <field name="sale_refund_sequence_next" nolabel="1" class="oe_inline" attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
91 <field name="module_account_voucher"/>
92 <field name="module_account_followup"/>
93 <field name="group_proforma_invoices"/>
94 <separator name="analytic_accounting" invisible="1" string="Analytic Accounting"/>
96 <group name="other_cofing">
97 <separator string="Supplier Invoices" colspan="2"/>
98 <label for="purchase_sequence_next"/>
100 <field name="purchase_sequence_prefix" class="oe_inline" nolabel="1"
101 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
102 <field name="purchase_sequence_next" nolabel="1" class="oe_inline" attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
104 <label for="purchase_refund_sequence_next"/>
106 <field name="purchase_refund_sequence_prefix" class="oe_inline" nolabel="1"
107 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
108 <field name="purchase_refund_sequence_next" class="oe_inline"
109 attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}" nolabel="1"/>
111 <field name="module_account_payment"/>
112 <separator string="Electronic Payments" colspan="2"/>
113 <field name="paypal_account" placeholder="e.g. sales@openerp.com"/>
114 <separator string="Bank & Cash" colspan="2"/>
115 <label for="id" string="Configure Bank Accounts"/>
116 <button name="%(action_bank_tree)d" string="Configure Bank Accounts" icon="gtk-go-forward" type="action"/>
117 <field name="company_footer"/>
118 <field name="module_account_check_writing"/>
121 <label for="id" string="Chart of Accounts"/>
123 <div attrs="{'invisible': [('has_default_company', '=', True)]}">
124 <label for="company_id" string="Select Company"/>
125 <field name="company_id"
127 on_change="onchange_company_id(company_id)"
131 <field name="expects_chart_of_accounts" class="oe_inline"/>
132 <label for="expects_chart_of_accounts"/>
136 <separator string="Chart of Account and Fiscal Year" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}"/>
137 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
138 <label for="id" string="Chart of Account"/>
141 <label for="chart_template_id"/>
142 <field name="chart_template_id"
144 domain="[('visible','=', True)]"
145 on_change="onchange_chart_template_id(chart_template_id)"
147 <button string="Install more chart templates"
148 icon="gtk-go-forward"
149 name="%(open_account_charts_modules)d"
153 <div groups="account.group_account_user">
154 <label for="code_digits"/>
155 <field name="code_digits" class="oe_inline"/>
157 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
158 <label for="sale_tax"/>
159 <field name="sale_tax"
160 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
163 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
164 <label for="purchase_tax"/>
165 <field name="purchase_tax"
166 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
169 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
170 <label for="sale_tax_rate"/>
171 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/>
173 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
174 <label for="purchase_tax_rate"/>
175 <field name="purchase_tax_rate" />
179 <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
180 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
181 <label for="id" string="Fiscal Year"/>
184 <label for="date_start" string="Date Range"/>
185 <field name="date_start"
186 on_change="onchange_start_date(date_start)"
187 class="oe_inline"/> -
188 <field name="date_stop" class="oe_inline"/>
191 <label for="period"/>
192 <field name="period" class="oe_inline"/>
196 <separator string="eInvoicing & Payments"/>
198 <label for="id" string="Customer"/>
200 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
201 <label for="default_sale_tax"/>
202 <field name="default_sale_tax"
203 domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
207 <label for="sale_sequence_next"/>
208 <field name="sale_sequence_prefix"
210 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
211 <field name="sale_sequence_next"
213 attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
216 <label for="sale_refund_sequence_next"/>
217 <field name="sale_refund_sequence_prefix"
219 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
220 <field name="sale_refund_sequence_next"
222 attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
225 <field name="group_proforma_invoices" class="oe_inline"/>
226 <label for="group_proforma_invoices"/>
229 <field name="module_account_voucher" class="oe_inline"/>
230 <label for="module_account_voucher"/>
233 <field name="module_account_followup" class="oe_inline"/>
234 <label for="module_account_followup"/>
239 <label for="id" string="Supplier"/>
240 <div name="other_cofing">
241 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
242 <label for="default_purchase_tax"/>
243 <field name="default_purchase_tax"
244 domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
248 <label for="purchase_sequence_next"/>
249 <field name="purchase_sequence_prefix"
251 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
252 <field name="purchase_sequence_next"
254 attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
257 <label for="purchase_refund_sequence_next"/>
258 <field name="purchase_refund_sequence_prefix"
260 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
261 <field name="purchase_refund_sequence_next"
263 attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
266 <field name="module_account_payment" class="oe_inline"/>
267 <label for="module_account_payment"/>
270 <field name="module_account_check_writing" class="oe_inline"/>
271 <label for="module_account_check_writing"/>
275 <separator string="Bank & Cash"/>
277 <label for="id" string="Configuration"/>
280 <label string="Configure your bank accounts"/>
281 <button name="%(action_bank_tree)d"
283 icon="gtk-go-forward"
285 class="oe_inline oe_link"/>
288 <label for="company_footer"/>: <field name="company_footer" class="oe_inline"/>
291 <label for="paypal_account"/>
292 <field name="paypal_account" placeholder="sales@openerp.com" class="oe_inline"/>
296 <separator string="Accounting & Finance"/>
298 <label for="id" string="Options"/>
299 <div name="account_config">
301 <label for="currency_id"/>
302 <field name="currency_id" class="oe_inline"/>
305 <label for="decimal_precision"/>
306 <field name="decimal_precision" class="oe_inline"/>
309 <label for="tax_calculation_rounding_method"/>
310 <field name="tax_calculation_rounding_method" class="oe_inline"/>
313 <label for="id" string="Features"/>
316 <field name="module_account_accountant" class="oe_inline"/>
317 <label for="module_account_accountant"/>
320 <field name="module_account_asset" class="oe_inline"/>
321 <label for="module_account_asset"/>
324 <field name="module_account_budget" class="oe_inline"/>
325 <label for="module_account_budget"/>
329 <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
330 <group name="analytic_account_sale" invisible="1">
331 <label for="id" string="Sale"/>
334 <group name="analytic_account_purchase" invisible="1">
335 <label for="id" string="Purchase"/>
339 <field name="sale_journal_id" invisible="1"/>
340 <field name="sale_refund_journal_id" invisible="1"/>
341 <field name="purchase_journal_id" invisible="1"/>
342 <field name="purchase_refund_journal_id" invisible="1"/>
347 <record id="action_account_config" model="ir.actions.act_window">
348 <field name="name">Configure Accounting</field>
349 <field name="type">ir.actions.act_window</field>
350 <field name="res_model">account.config.settings</field>
351 <field name="view_mode">form</field>
352 <field name="target">inline</field>
355 <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
356 sequence="14" action="action_account_config"/>