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">
31 <label for="id" string="Chart of Accounts"/>
33 <div attrs="{'invisible': [('has_default_company', '=', True)]}">
34 <label for="company_id" string="Select Company"/>
35 <field name="company_id"
37 on_change="onchange_company_id(company_id)"
41 <field name="expects_chart_of_accounts" class="oe_inline"/>
42 <label for="expects_chart_of_accounts"/>
46 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
47 <label for="id" string="Select Chart"/>
50 <field name="chart_template_id"
52 domain="[('visible','=', True)]"
53 on_change="onchange_chart_template_id(chart_template_id)"
55 <button string="Install More Chart Templates"
57 name="%(open_account_charts_modules)d"
61 <div groups="account.group_account_user">
62 <label for="code_digits"/>
63 <field name="code_digits" class="oe_inline"/>
65 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
66 <label for="sale_tax"/>
67 <field name="sale_tax"
68 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
71 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
72 <label for="purchase_tax"/>
73 <field name="purchase_tax"
74 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
77 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
78 <label for="sale_tax_rate"/>
79 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/>
81 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
82 <label for="purchase_tax_rate"/>
83 <field name="purchase_tax_rate" />
87 <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
88 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
89 <label for="id" string="Fiscal Year"/>
92 <label for="date_start" string="Date Range"/>
93 <field name="date_start"
94 on_change="onchange_start_date(date_start)"
96 <field name="date_stop" class="oe_inline"/>
100 <field name="period" class="oe_inline"/>
104 <separator string="Accounting Configuration"/>
106 <label for="id" string="Configuration"/>
107 <div name="account_config">
109 <field name="module_account_accountant" class="oe_inline"/>
110 <label for="module_account_accountant"/>
113 <label for="currency_id"/>
114 <field name="currency_id" class="oe_inline"/>
117 <label for="decimal_precision"/>
118 <field name="decimal_precision" class="oe_inline"/>
121 <label for="tax_calculation_rounding_method"/>
122 <field name="tax_calculation_rounding_method" class="oe_inline"/>
125 <field name="module_account_asset" class="oe_inline"/>
126 <label for="module_account_asset"/>
129 <field name="module_account_budget" class="oe_inline"/>
130 <label for="module_account_budget"/>
134 <separator string="eInvoicing & Payments"/>
136 <label for="id" string="Customer"/>
138 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
139 <label for="default_sale_tax"/>
140 <field name="default_sale_tax"
141 domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
145 <label for="sale_sequence_next"/>
146 <field name="sale_sequence_prefix"
148 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
149 <field name="sale_sequence_next"
151 attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
154 <label for="sale_refund_sequence_next"/>
155 <field name="sale_refund_sequence_prefix"
157 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
158 <field name="sale_refund_sequence_next"
160 attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
163 <field name="module_account_voucher" class="oe_inline"/>
164 <label for="module_account_voucher"/>
167 <field name="module_account_followup" class="oe_inline"/>
168 <label for="module_account_followup"/>
171 <field name="group_proforma_invoices" class="oe_inline"/>
172 <label for="group_proforma_invoices"/>
175 <label for="id" string="Supplier"/>
176 <div name="other_cofing">
177 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
178 <label for="default_purchase_tax"/>
179 <field name="default_purchase_tax"
180 domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
184 <label for="purchase_sequence_next"/>
185 <field name="purchase_sequence_prefix"
187 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
188 <field name="purchase_sequence_next"
190 attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
193 <label for="purchase_refund_sequence_next"/>
194 <field name="purchase_refund_sequence_prefix"
196 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
197 <field name="purchase_refund_sequence_next"
199 attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
202 <field name="module_account_payment" class="oe_inline"/>
203 <label for="module_account_payment"/>
207 <separator string="Electronic Payments"/>
209 <label for="id" string="Payment Settings"/>
212 <label for="paypal_account"/>
213 <field name="paypal_account" placeholder="sales@openerp.com" class="oe_inline"/>
217 <separator string="Bank & Cash"/>
219 <label for="id" string="Configuration"/>
222 <label string="Configure Bank Accounts"/>
223 <button name="%(action_bank_tree)d"
225 icon="gtk-go-forward"
227 class="oe_inline oe_link"/>
230 <label for="company_footer"/>
231 <field name="company_footer" class="oe_inline"/>
234 <field name="module_account_check_writing" class="oe_inline"/>
235 <label for="module_account_check_writing"/>
239 <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
240 <group name="analytic_account" invisible="1">
241 <label for="id" string="Settings"/>
242 <div name="analytic_account"/>
244 <field name="sale_journal_id" invisible="1"/>
245 <field name="sale_refund_journal_id" invisible="1"/>
246 <field name="purchase_journal_id" invisible="1"/>
247 <field name="purchase_refund_journal_id" invisible="1"/>
252 <record id="action_account_config" model="ir.actions.act_window">
253 <field name="name">Configure Accounting</field>
254 <field name="type">ir.actions.act_window</field>
255 <field name="res_model">account.config.settings</field>
256 <field name="view_mode">form</field>
257 <field name="target">inline</field>
260 <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
261 sequence="14" action="action_account_config"/>