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" layout="manual">
20 <button string="Apply" type="object" name="execute"/>
21 <button string="Cancel" special="cancel"/>
24 <field name="has_default_company" invisible="1" />
25 <field name="has_chart_of_accounts" invisible="1"/>
26 <field name="company_id" widget="selection" on_change="onchange_company_id(company_id)"
27 attrs="{'invisible': [('has_default_company', '=', True)]}"/>
28 <field name="expects_chart_of_accounts"/>
30 <group string="No Chart of Accounts exists for this Company" colspan="4" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_chart_of_accounts','=',True)]}">
31 <label string="Please select a chart template to install a chart of accounts." colspan="4"/>
32 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
33 <button string="Install More Chart Templates" icon="gtk-go-forward"
34 name="%(open_account_charts_modules)d" type="action"/>
36 <field name ="code_digits" groups="account.group_account_user"/>
37 <field name ="seq_journal"/>
39 <field name ="complete_tax_set" invisible="1"/>
40 <field name="sale_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
41 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
42 <field name="purchase_tax" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',False)]}"
43 domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
44 <field name ="sale_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}" on_change="onchange_tax_rate(sale_tax_rate)"/>
45 <field name ="purchase_tax_rate" attrs="{'invisible': ['|', ('chart_template_id','=',False), ('complete_tax_set','=',True)]}"/>
48 <field name="has_fiscal_year" invisible="1"/>
49 <group string="No Fiscal Year exists for this Company" colspan="4" attrs="{'invisible': ['|', ('expects_chart_of_accounts','=',False), ('has_fiscal_year','=',True)]}">
50 <field name="date_start" on_change="onchange_start_date(date_start)"/>
51 <field name="date_stop"/>
52 <field name="period" colspan="4"/>
56 <separator string="Accounting Configuration" colspan="4"/>
57 <field name ="complete_tax_set" invisible="1"/>
59 <group colspan="2" col="2">
60 <field name="default_sale_tax" domain="[('type_tax_use','=','sale'), ('company_id','=',company_id)]" attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
61 <field name="module_account_accountant"/>
62 <field name="module_account_asset"/>
64 <group colspan="2" col="2">
65 <field name="default_purchase_tax" domain="[('type_tax_use','=','purchase'), ('company_id','=',company_id)]" attrs="{'invisible': [('has_chart_of_accounts','=',False)]}"/>
66 <field name="currency_id" widget="selection"/>
67 <field name="module_account_budget"/>
68 <field name="decimal_precision"/>
71 <group colspan="2" col="2">
72 <separator string="Customer Invoices" colspan="2"/>
73 <field name="sale_journal_id" invisible="1"/>
74 <label string="Invoice Sequence" for="sale_sequence_prefix"/>
75 <group colspan="1" col="2">
76 <field name="sale_sequence_prefix" nolabel="1"/>
77 <field name="sale_sequence_next" nolabel="1" attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
79 <field name="sale_refund_journal_id" invisible="1"/>
80 <label string="Credit Note Sequence" for="sale_refund_sequence_prefix"/>
81 <group colspan="1" col="2">
82 <field name="sale_refund_sequence_prefix" nolabel="1"/>
83 <field name="sale_refund_sequence_next" nolabel="1" attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
85 <field name="module_account_invoice_layout"/>
86 <field name="module_account_voucher"/>
87 <field name="module_account_followup"/>
88 <field name="group_proforma_invoices"/>
90 <group colspan="2" col="2">
91 <separator string="Supplier Invoices" colspan="2"/>
92 <field name="purchase_journal_id" invisible="1"/>
93 <label string="Supplier Invoice Sequence" for="purchase_sequence_prefix"/>
94 <group colspan="1" col="2">
95 <field name="purchase_sequence_prefix" nolabel="1"/>
96 <field name="purchase_sequence_next" nolabel="1" attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
98 <field name="purchase_refund_journal_id" invisible="1"/>
99 <label string="Supplier Credit Note Sequence" for="purchase_refund_sequence_prefix"/>
100 <group colspan="1" col="2">
101 <field name="purchase_refund_sequence_prefix" nolabel="1"/>
102 <field name="purchase_refund_sequence_next" nolabel="1" attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
104 <field name="module_account_payment"/>
106 <group colspan="2" col="2">
107 <separator string="Electronic Payments" colspan="2"/>
108 <field name="paypal_account"/>
110 <group colspan="2" col="2">
111 <separator string="Bank & Cash" colspan="2"/>
112 <label string="Configure Bank Accounts :"/>
113 <button name="%(action_bank_tree)d" string="Configure Bank Accounts" icon="gtk-go-forward" type="action"/>
114 <field name="company_footer"/>
115 <field name="module_account_check_writing"/>
117 <group name="analytic_accounting" colspan="4" invisible="1">
118 <separator string="Analytic Accounting" colspan="4"/>
125 <record id="action_account_config" model="ir.actions.act_window">
126 <field name="name">Configure Accounting</field>
127 <field name="type">ir.actions.act_window</field>
128 <field name="res_model">account.config.settings</field>
129 <field name="view_mode">form</field>
130 <field name="target">inline</field>
133 <menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
134 sequence="14" action="action_account_config"/>