odoo/addons/account/res_config_view.xml

119 lines
7.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_account_config_settings" model="ir.ui.view">
<field name="name">account settings</field>
<field name="model">account.config.settings</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Configure Accounting">
<field name="chart_template_id" invisible="1"/>
<group col="4" colspan="4" string="Warning" attrs="{'invisible': [('chart_template_id','!=',False)]}">
<label string="You have no chart of accounts or taxes defined for this company. Select a chart of account to proceed." colspan="4"/>
<field name="charts"/>
<button name="install_chartofaccounts" string="Install Chart of Account" icon="gtk-execute" type="object"/>
</group>
<field name="fiscalyear_id" invisible="1"/>
<group col="4" colspan="4" string="Warning" attrs="{'invisible': [('fiscalyear_id','!=',False)]}">
<field name="has_default_company" invisible="1" />
<field name="date_start" on_change="on_change_start_date(date_start)"/>
<field name="date_stop"/>
<field name="period" colspan="4"/>
<newline/>
<group col="4" colspan="4">
<label string="You have no fiscal year/period open for this date."/>
<button name="configure_fiscalyear" string="Configure Fiscalyear" icon="gtk-execute" type="object"/>
</group>
</group>
<field name="company_id" widget="selection" on_change="onchange_company_id(company_id)"
attrs="{'invisible': [('has_default_company', '=', True)]}"/>
<group colspan="4">
<separator string="Accounting Configuration" colspan="4"/>
<field name ="complete_tax_set" invisible="1"/>
<field name ="multi_charts_id" invisible="1"/>
<newline/>
<group colspan="2" col="2">
<field name="taxes_id" attrs="{'invisible': [('complete_tax_set', '!=', True)]}"/>
<field name="sale_tax_rate" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
<field name="module_account_accountant"/>
<field name="module_account_asset"/>
<field name="group_dates_periods"/>
</group>
<group colspan="2" col="2">
<field name="supplier_taxes_id" attrs="{'invisible': [('complete_tax_set', '!=', True)]}"/>
<field name="purchase_tax_rate" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
<field name="currency_id" widget="selection"/>
<field name="module_account_budget"/>
</group>
</group>
<group colspan="2">
<separator string="Customer Invoices" colspan="4"/>
<field name="sale_journal_id" invisible="1"/>
<field name="sale_sequence_prefix" attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
<field name="sale_sequence_next" nolabel="1" attrs="{'readonly': [('sale_journal_id','=',False)]}"/>
<newline/>
<field name="sale_refund_journal_id" invisible="1"/>
<field name="sale_refund_sequence_prefix" attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
<field name="sale_refund_sequence_next" nolabel="1" attrs="{'readonly': [('sale_refund_journal_id','=',False)]}"/>
<newline/>
<field name="module_account_invoice_layout"/>
<newline/>
<field name="module_account_voucher"/>
<newline/>
<field name="module_account_followup"/>
<newline/>
<field name="group_proforma_invoices"/>
</group>
<group colspan="2">
<separator string="Supplier Invoices" colspan="4"/>
<field name="purchase_journal_id" invisible="1"/>
<field name="purchase_sequence_prefix" attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
<field name="purchase_sequence_next" nolabel="1" attrs="{'readonly': [('purchase_journal_id','=',False)]}"/>
<newline/>
<field name="purchase_refund_journal_id" invisible="1"/>
<field name="purchase_refund_sequence_prefix" attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
<field name="purchase_refund_sequence_next" nolabel="1" attrs="{'readonly': [('purchase_refund_journal_id','=',False)]}"/>
<newline/>
<field name="module_account_payment"/>
</group>
<group colspan="2">
<separator string="Electronic Payments" colspan="4"/>
<field name="paypal_account"/>
</group>
<group colspan="2">
<separator string="Bank &amp; Cash" colspan="4"/>
<field name="company_footer"/>
<newline/>
<label string="Setup your bank accounts: "/>
<button name="%(action_bank_tree)d" string="My Bank Accounts" icon="gtk-jump-to" type="action"/>
<newline/>
<field name="module_account_check_writing"/>
</group>
<group colspan="2">
<separator string="Analytic Accounting" colspan="4"/>
<field name="group_analytic_account_for_sales"/>
<newline/>
<field name="group_analytic_account_for_purchase"/>
<newline/>
<field name="module_account_analytic_plans"/>
<newline/>
<field name="module_account_analytic_default"/>
</group>
</form>
</field>
</record>
<record id="action_account_config" model="ir.actions.act_window">
<field name="name">Configure Accounting</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.config.settings</field>
<field name="view_mode">form</field>
</record>
<menuitem id="menu_account_config" name="Accounting" parent="base.menu_config"
sequence="6" action="action_account_config"/>
</data>
</openerp>