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="arch" type="xml">
17 <form string="Configure Accounting" class="oe_form_configuration">
19 <button string="Apply" type="object" name="execute" class="oe_highlight"/>
21 <button string="Cancel" type="object" name="cancel" class="oe_link"/>
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"/>
32 <div attrs="{'invisible': [('has_default_company', '=', True)]}">
33 <label for="company_id" string="Select Company"/>
34 <field name="company_id"
36 on_change="onchange_company_id(company_id, context)"
40 <field name="expects_chart_of_accounts" class="oe_inline"/>
41 <label for="expects_chart_of_accounts"/>
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"/>
50 <label for="chart_template_id"/>
51 <field name="chart_template_id"
53 domain="[('visible','=', True)]"
54 on_change="onchange_chart_template_id(chart_template_id)"
56 <button string="Install more chart templates"
58 name="%(open_account_charts_modules)d"
62 <div groups="account.group_account_user">
63 <label for="code_digits"/>
64 <field name="code_digits" class="oe_inline"/>
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'))]"
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'))]"
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)"/>
82 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
83 <label for="purchase_tax_rate"/>
84 <field name="purchase_tax_rate" />
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"/>
93 <label for="date_start" string="Date Range"/>
94 <field name="date_start"
95 on_change="onchange_start_date(date_start)"
97 <field name="date_stop" class="oe_inline"/>
100 <label for="period"/>
101 <field name="period" class="oe_inline"/>
105 <separator string="Accounting & Finance"/>
107 <label for="id" string="Options"/>
108 <div name="account_config">
110 <label for="currency_id"/>
111 <field name="currency_id" class="oe_inline"/>
114 <label for="decimal_precision"/>
115 <field name="decimal_precision" class="oe_inline"/>
118 <field name="tax_calculation_rounding_method" widget="radio" class="oe_inline" />
121 <label for="id" string="Features"/>
123 <div name="group_multi_currency">
124 <field name="group_multi_currency" class="oe_inline" on_change="onchange_multi_currency(group_multi_currency)"/>
125 <label for="group_multi_currency"/>
126 <group attrs="{'invisible': [('group_multi_currency', '<>', True)]}" col="2">
128 <field name="income_currency_exchange_account_id"/>
129 <field name="expense_currency_exchange_account_id"/>
136 <field name="module_account_accountant" class="oe_inline"/>
137 <label for="module_account_accountant"/>
140 <field name="group_analytic_accounting" class="oe_inline" on_change="onchange_analytic_accounting(group_analytic_accounting, context)"/>
141 <label for="group_analytic_accounting"/>
144 <field name="module_account_asset" class="oe_inline"/>
145 <label for="module_account_asset"/>
148 <field name="module_account_budget" class="oe_inline"/>
149 <label for="module_account_budget"/>
153 <separator string="eInvoicing & Payments"/>
155 <label for="id" string="Customer"/>
157 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
158 <label for="default_sale_tax"/>
159 <field name="default_sale_tax"
160 domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
164 <label for="sale_sequence_next"/>
165 <field name="sale_sequence_prefix"
167 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
168 <field name="sale_sequence_next"
170 attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
173 <label for="sale_refund_sequence_next"/>
174 <field name="sale_refund_sequence_prefix"
176 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
177 <field name="sale_refund_sequence_next"
179 attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
182 <field name="group_proforma_invoices" class="oe_inline"/>
183 <label for="group_proforma_invoices"/>
186 <field name="module_account_voucher" class="oe_inline"/>
187 <label for="module_account_voucher"/>
190 <field name="module_account_followup" class="oe_inline"/>
191 <label for="module_account_followup"/>
194 <field name="module_product_email_template" class="oe_inline"/>
195 <label for="module_product_email_template"/>
200 <label for="id" string="Supplier"/>
201 <div name="other_cofing">
202 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
203 <label for="default_purchase_tax"/>
204 <field name="default_purchase_tax"
205 domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
209 <label for="purchase_sequence_next"/>
210 <field name="purchase_sequence_prefix"
212 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
213 <field name="purchase_sequence_next"
215 attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
218 <label for="purchase_refund_sequence_next"/>
219 <field name="purchase_refund_sequence_prefix"
221 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
222 <field name="purchase_refund_sequence_next"
224 attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
227 <field name="module_account_payment" class="oe_inline"/>
228 <label for="module_account_payment"/>
231 <field name="module_account_check_writing" class="oe_inline"/>
232 <label for="module_account_check_writing"/>
235 <field name="group_check_supplier_invoice_total" class="oe_inline"/>
236 <label for="group_check_supplier_invoice_total"/>
240 <separator string="Bank & Cash"/>
241 <group name="bank_cash">
242 <label for="id" string="Configuration"/>
244 <div name='company_footer'>
245 <label for="company_footer"/>
246 <button name="open_company_form" type="object"
247 string="Configure your company bank accounts" icon="gtk-go-forward"
248 class="oe_inline oe_link"/>
249 <field name="company_footer"/>
251 <div name='payment_acquirer'>
252 <label for="paypal_account"/>
253 <field name="paypal_account" placeholder="e.g. sales@odoo.com" class="oe_inline"/>
256 <label for="id" string="Bank Statements"/>
259 <field name="module_account_bank_statement_import_ofx" class="oe_inline"/>
260 <label for="module_account_bank_statement_import_ofx"/>
263 <field name="module_account_bank_statement_import_qif" class="oe_inline"/>
264 <label for="module_account_bank_statement_import_qif"/>
268 <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
269 <group name="analytic_account_sale" invisible="1">
270 <label for="id" string="Sale"/>
273 <group name="analytic_account_purchase" invisible="1">
274 <label for="id" string="Purchase"/>
277 <field name="sale_journal_id" invisible="1"/>
278 <field name="sale_refund_journal_id" invisible="1"/>
279 <field name="purchase_journal_id" invisible="1"/>
280 <field name="purchase_refund_journal_id" invisible="1"/>
285 <record id="action_account_config" model="ir.actions.act_window">
286 <field name="name">Configure Accounting</field>
287 <field name="type">ir.actions.act_window</field>
288 <field name="res_model">account.config.settings</field>
289 <field name="view_mode">form</field>
290 <field name="target">inline</field>
293 <menuitem id="menu_account_config" name="Invoicing" parent="base.menu_config"
294 sequence="14" action="action_account_config"/>