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"/>
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)"
40 <field name="expects_chart_of_accounts" class="oe_inline"/>
41 <label for="expects_chart_of_accounts"/>
45 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
46 <label for="id" string="Select Chart"/>
49 <field name="chart_template_id"
51 domain="[('visible','=', True)]"
52 on_change="onchange_chart_template_id(chart_template_id)"
54 <button string="Install More Chart Templates"
56 name="%(open_account_charts_modules)d"
60 <div groups="account.group_account_user">
61 <label for="code_digits"/>
62 <field name="code_digits" class="oe_inline"/>
64 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
65 <label for="sale_tax"/>
66 <field name="sale_tax"
67 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"
70 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}">
71 <label for="purchase_tax"/>
72 <field name="purchase_tax"
73 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"
76 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
77 <label for="sale_tax_rate"/>
78 <field name="sale_tax_rate" on_change="onchange_tax_rate(sale_tax_rate)"/>
80 <div attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}">
81 <label for="purchase_tax_rate"/>
82 <field name="purchase_tax_rate" />
86 <separator string="No Fiscal Year Defined for This Company" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}"/>
87 <group attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
88 <label for="id" string="Fiscal Year"/>
91 <label for="date_start" string="Date Range"/>
92 <field name="date_start"
93 on_change="onchange_start_date(date_start)"
95 <field name="date_stop" class="oe_inline"/>
99 <field name="period" class="oe_inline"/>
103 <separator string="Accounting Configuration"/>
105 <label for="id" string="Configuration"/>
106 <div name="account_config">
107 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
108 <label for="default_sale_tax"/>
109 <field name="default_sale_tax"
110 domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]"
114 <field name="module_account_accountant" class="oe_inline"/>
115 <label for="module_account_accountant"/>
118 <label for="currency_id"/>
119 <field name="currency_id" class="oe_inline"/>
122 <label for="decimal_precision"/>
123 <field name="decimal_precision" class="oe_inline"/>
125 <div attrs="{'invisible': [('has_chart_of_accounts','=',False)]}">
126 <label for="default_purchase_tax"/>
127 <field name="default_purchase_tax"
128 domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]"
132 <label for="tax_calculation_rounding_method"/>
133 <field name="tax_calculation_rounding_method" class="oe_inline"/>
136 <field name="module_account_asset" class="oe_inline"/>
137 <label for="module_account_asset"/>
140 <field name="module_account_budget" class="oe_inline"/>
141 <label for="module_account_budget"/>
145 <separator string="Invoices"/>
147 <label for="id" string="Customer Settings"/>
150 <label for="sale_sequence_next"/>
151 <field name="sale_sequence_prefix"
153 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
154 <field name="sale_sequence_next"
156 attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
159 <label for="sale_refund_sequence_next"/>
160 <field name="sale_refund_sequence_prefix"
162 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
163 <field name="sale_refund_sequence_next"
165 attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
168 <field name="module_account_voucher" class="oe_inline"/>
169 <label for="module_account_voucher"/>
172 <field name="module_account_followup" class="oe_inline"/>
173 <label for="module_account_followup"/>
176 <field name="group_proforma_invoices" class="oe_inline"/>
177 <label for="group_proforma_invoices"/>
180 <label for="id" string="Supplier Settings"/>
181 <div name="other_cofing">
183 <label for="purchase_sequence_next"/>
184 <field name="purchase_sequence_prefix"
186 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
187 <field name="purchase_sequence_next"
189 attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
192 <label for="purchase_refund_sequence_next"/>
193 <field name="purchase_refund_sequence_prefix"
195 help='If you put "%%(year)s" in the prefix, it will be replaced by the current year.'/>
196 <field name="purchase_refund_sequence_next"
198 attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
201 <field name="module_account_payment" class="oe_inline"/>
202 <label for="module_account_payment"/>
206 <separator string="Electronic Payments"/>
208 <label for="id" string="Payment Settings"/>
211 <label for="paypal_account"/>
212 <field name="paypal_account" placeholder="sales@openerp.com" class="oe_inline"/>
216 <separator string="Bank & Cash"/>
218 <label for="id" string="Configuration"/>
221 <label string="Configure Bank Accounts"/>
222 <button name="%(action_bank_tree)d"
224 icon="gtk-go-forward"
226 class="oe_inline oe_link"/>
229 <label for="company_footer"/>
230 <field name="company_footer" class="oe_inline"/>
233 <field name="module_account_check_writing" class="oe_inline"/>
234 <label for="module_account_check_writing"/>
238 <separator name="analytic_account" string="Analytic Accounting" invisible="1"/>
239 <group name="analytic_account" invisible="1">
240 <label for="id" string="Settings"/>
241 <div name="analytic_account"/>
243 <field name="sale_journal_id" invisible="1"/>
244 <field name="sale_refund_journal_id" invisible="1"/>
245 <field name="purchase_journal_id" invisible="1"/>
246 <field name="purchase_refund_journal_id" invisible="1"/>
251 <record id="action_account_config" model="ir.actions.act_window">
252 <field name="name">Configure Accounting</field>
253 <field name="type">ir.actions.act_window</field>
254 <field name="res_model">account.config.settings</field>
255 <field name="view_mode">form</field>
256 <field name="target">inline</field>
259 <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
260 sequence="14" action="action_account_config"/>