With this change, * some modules are now set to be automatically installed by default * the setup bar of accounting has been changed in order to allow more easiliy the configuration of bank accounts/journals (and the step to oversee the opening entry has been removed) * the kanban view in the dashboard has been enhanced (mostly for bank journals, but not only) Was task: 32668 Was PR #23049
122 lines
6.5 KiB
XML
122 lines
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="setup_view_company_form" model="ir.ui.view">
|
|
<field name="name">account.setup.company.form</field>
|
|
<field name="model">res.company</field>
|
|
<field name="inherit_id" ref="base.view_company_form"/>
|
|
<field name="mode">primary</field>
|
|
<field name="priority">42000</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form/sheet" position="after">
|
|
<footer>
|
|
<field name="account_setup_company_data_done" invisible="True"/>
|
|
<button string="Mark as done" type="object" name="mark_company_setup_as_done_action" class="oe_highlight" attrs="{'invisible': [('account_setup_company_data_done','=',True)]}"/>
|
|
<button string="Save" type="action" name="account.setup_wizard_close" attrs="{'invisible': [('account_setup_company_data_done','=',True)]}"/>
|
|
<button string="Save" type="action" name="account.setup_wizard_close" class="oe_highlight" attrs="{'invisible': [('account_setup_company_data_done','=',False)]}"/>
|
|
<button string="Unmark as done" type="object" name="unmark_company_setup_as_done_action" attrs="{'invisible': [('account_setup_company_data_done','=',False)]}"/>
|
|
</footer>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="setup_financial_year_opening_form" model="ir.ui.view">
|
|
<field name="name">account.financial.year.op.setup.wizard.form</field>
|
|
<field name="model">account.financial.year.op</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<div class="row">
|
|
<div class="col-xs-4">
|
|
<label for="opening_date"/>
|
|
</div>
|
|
<div class="col-xs-8">
|
|
<field name="opening_move_posted" invisible="1"/>
|
|
<field name="opening_date" attrs="{'readonly': [('opening_move_posted', '=', True)]}"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-4">
|
|
<strong>Fiscal Year End</strong>
|
|
</div>
|
|
<div class="col-xs-4">
|
|
<field name="fiscalyear_last_day"/>
|
|
</div>
|
|
<div class="col-xs-4">
|
|
<field name="fiscalyear_last_month"/>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<field name="account_setup_fy_data_done" invisible="True"/>
|
|
<button string="Mark as done" type="object" name="mark_as_done" class="oe_highlight" attrs="{'invisible': [('account_setup_fy_data_done','=',True)]}"/>
|
|
<button string="Save" type="action" name="account.setup_wizard_close" attrs="{'invisible': [('account_setup_fy_data_done','=',True)]}"/>
|
|
<button string="Save" type="action" name="account.setup_wizard_close" class="oe_highlight" attrs="{'invisible': [('account_setup_fy_data_done','=',False)]}"/>
|
|
<button string="Unmark as done" type="object" name="unmark_as_done" attrs="{'invisible': [('account_setup_fy_data_done','=',False)]}"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="setup_bank_account_wizard" model="ir.ui.view">
|
|
<field name="name">account.online.sync.res.partner.bank.setup.form</field>
|
|
<field name="model">account.setup.bank.manual.config</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<field name="create_or_link_option" widget="radio" options="{'horizontal': true}"/>
|
|
<group attrs="{'invisible': [('create_or_link_option','!=','link')]}">
|
|
<group>
|
|
<field name="linked_journal_id" attrs="{'required': [('create_or_link_option','=','link')]}" domain="[('type','=','bank'), ('bank_account_id', '=', False)]"/>
|
|
</group>
|
|
<group>
|
|
<span class="text-muted">Only journals not yet linked to a bank account are proposed</span>
|
|
</group>
|
|
</group>
|
|
<div attrs="{'invisible': [('create_or_link_option', '=', 'link')]}" class="oe_title">
|
|
<label for="new_journal_name" class="oe_edit_only"/>
|
|
<h1><field name="new_journal_name" placeholder="e.g Checking account" class="oe_inline"/></h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="acc_number" placeholder="e.g BE15001559627230"/>
|
|
<field name="bank_id" placeholder="e.g Bank of America"/>
|
|
<field name="new_journal_code" attrs="{'invisible': [('create_or_link_option', '=', 'link')]}"/>
|
|
</group>
|
|
<group>
|
|
<field name="related_acc_type" attrs="{'invisible': [('acc_number','=',False)]}"/>
|
|
</group>
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
<footer>
|
|
<button string="Create" class="oe_highlight" type="object" name="validate"/>
|
|
<button string="Cancel" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="init_accounts_tree" model="ir.ui.view">
|
|
<field name="name">account.setup.opening.move.line.tree</field>
|
|
<field name="model">account.account</field>
|
|
<field name="arch" type="xml">
|
|
<tree editable="top" create="1" delete="1">
|
|
<field name="code"/>
|
|
<field name="name"/>
|
|
<field name="user_type_id"/>
|
|
<field name="opening_debit"/>
|
|
<field name="opening_credit"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="setup_wizard_close" model="ir.actions.act_window_close">
|
|
<field name="name">Close setup wizards</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|