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 <separator string="Chart of Account and Fiscal Year" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}"/>
47 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
48 <label for="id" string="Chart of Account"/>
51 <label for="chart_template_id"/>
52 <field name="chart_template_id"
54 domain="[('visible','=', True)]"
55 on_change="onchange_chart_template_id(chart_template_id)"
57 <button string="Install more chart templates"
59 name="%(open_account_charts_modules)d"
63 <div groups="account.group_account_user">
64 <label for="code_digits"/>
65 <field name="code_digits" class="oe_inline"/>
67 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
68 <label for="sale_tax"/>
69 <field name="sale_tax"
70 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
73 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
74 <label for="purchase_tax"/>
75 <field name="purchase_tax"
76 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
79 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
80 <label for="sale_tax_rate"/>
81 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/>
83 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
84 <label for="purchase_tax_rate"/>
85 <field name="purchase_tax_rate" />
89 <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
90 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
91 <label for="id" string="Fiscal Year"/>
94 <label for="date_start" string="Date Range"/>
95 <field name="date_start"
96 on_change="onchange_start_date(date_start)"
98 <field name="date_stop" class="oe_inline"/>
101 <label for="period"/>
102 <field name="period" class="oe_inline"/>
106 <separator string="eInvoicing & Payments"/>
108 <label for="id" string="Customer"/>
110 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
111 <label for="default_sale_tax"/>
112 <field name="default_sale_tax"
113 domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
117 <label for="sale_sequence_next"/>
118 <field name="sale_sequence_prefix"
120 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
121 <field name="sale_sequence_next"
123 attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
126 <label for="sale_refund_sequence_next"/>
127 <field name="sale_refund_sequence_prefix"
129 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
130 <field name="sale_refund_sequence_next"
132 attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
135 <field name="group_proforma_invoices" class="oe_inline"/>
136 <label for="group_proforma_invoices"/>
139 <field name="module_account_voucher" class="oe_inline"/>
140 <label for="module_account_voucher"/>
143 <field name="module_account_followup" class="oe_inline"/>
144 <label for="module_account_followup"/>
149 <label for="id" string="Supplier"/>
150 <div name="other_cofing">
151 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
152 <label for="default_purchase_tax"/>
153 <field name="default_purchase_tax"
154 domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
158 <label for="purchase_sequence_next"/>
159 <field name="purchase_sequence_prefix"
161 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
162 <field name="purchase_sequence_next"
164 attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
167 <label for="purchase_refund_sequence_next"/>
168 <field name="purchase_refund_sequence_prefix"
170 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
171 <field name="purchase_refund_sequence_next"
173 attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
176 <field name="module_account_payment" class="oe_inline"/>
177 <label for="module_account_payment"/>
180 <field name="module_account_check_writing" class="oe_inline"/>
181 <label for="module_account_check_writing"/>
185 <separator string="Bank & Cash"/>
187 <label for="id" string="Configuration"/>
190 <label string="Configure your bank accounts"/>
191 <button name="%(action_bank_tree)d"
193 icon="gtk-go-forward"
195 class="oe_inline oe_link"/>
197 <div style="color:grey">
198 <label for="company_footer"/>: <field name="company_footer" class="oe_inline"/>
201 <label for="paypal_account"/>
202 <field name="paypal_account" placeholder="sales@openerp.com" class="oe_inline"/>
206 <separator string="Accounting & Finance"/>
208 <label for="id" string="Options"/>
209 <div name="account_config">
211 <label for="currency_id"/>
212 <field name="currency_id" class="oe_inline"/>
215 <label for="decimal_precision"/>
216 <field name="decimal_precision" class="oe_inline"/>
219 <label for="tax_calculation_rounding_method"/>
220 <field name="tax_calculation_rounding_method" class="oe_inline"/>
223 <label for="id" string="Features"/>
226 <field name="module_account_accountant" class="oe_inline"/>
227 <label for="module_account_accountant"/>
230 <field name="module_account_asset" class="oe_inline"/>
231 <label for="module_account_asset"/>
234 <field name="module_account_budget" class="oe_inline"/>
235 <label for="module_account_budget"/>
239 <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
240 <group name="analytic_account" invisible="1">
241 <label for="id" string="Sale"/>
242 <div name="analytic_account_sale"></div>
243 <label for="id" string="Purchase"/>
244 <div name="analytic_account_purchase"></div>
246 <field name="sale_journal_id" invisible="1"/>
247 <field name="sale_refund_journal_id" invisible="1"/>
248 <field name="purchase_journal_id" invisible="1"/>
249 <field name="purchase_refund_journal_id" invisible="1"/>
254 <record id="action_account_config" model="ir.actions.act_window">
255 <field name="name">Configure Accounting</field>
256 <field name="type">ir.actions.act_window</field>
257 <field name="res_model">account.config.settings</field>
258 <field name="view_mode">form</field>
259 <field name="target">inline</field>
262 <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
263 sequence="14" action="action_account_config"/>