account-closing/account_fiscal_year_closing/views/account_fiscalyear_closing_views.xml

229 lines
10 KiB
XML
Raw Permalink Normal View History

2023-05-19 08:19:13 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<flectra>
<record id="view_account_fiscalyear_closing_tree" model="ir.ui.view">
<field name="name">account.fiscalyear.closing.tree</field>
<field name="model">account.fiscalyear.closing</field>
<field name="arch" type="xml">
<tree string="Fiscal year closing">
<field name="name" />
<field name="company_id" groups="base.group_multi_company" />
<field name="date_start" />
<field name="date_end" />
<field name="date_opening" />
<field name="state" />
<field name="calculation_date" />
</tree>
</field>
</record>
<record id="view_account_fiscalyear_closing_form" model="ir.ui.view">
<field name="name">account.fiscalyear.closing.form</field>
<field name="model">account.fiscalyear.closing</field>
<field name="arch" type="xml">
<form string="Fiscal year closing">
<header>
<button
name="button_calculate"
type="object"
string="Calculate"
class="oe_highlight"
attrs="{'invisible': [('state', 'not in', ['draft'])]}"
/>
<button
name="button_recalculate"
states="calculated"
type="object"
string="Recalculate"
/>
<button
name="button_post"
type="object"
string="Confirm and post moves"
class="oe_highlight"
attrs="{'invisible': ['|', ('move_config_ids', '=', []), ('state', 'not in', ['calculated'])]}"
/>
<button
name="button_recover"
states="cancelled"
type="object"
string="Draft"
/>
<button
name="button_cancel"
states="calculated,posted"
type="object"
string="Cancel"
confirm="This will remove all the closing moves. Are you sure you want to continue?"
/>
<field
name="state"
widget="statusbar"
statusbar_visible="draft,calculated,posted,cancelled"
statusbar_colors="{'cancelled': 'red', 'posted': 'blue'}"
/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button
class="oe_stat_button"
name="button_open_moves"
states="calculated,posted"
type="object"
string="Show moves"
icon="fa-list"
/>
<button
class="oe_stat_button"
name="button_open_move_lines"
states="calculated,posted"
type="object"
string="Show move lines"
icon="fa-list"
/>
</div>
<div class="oe_title">
<label for="name" string="Fiscal closing" />
<field name="name" class="oe_inline" />
</div>
<group>
<group>
<field name="chart_template_id" invisible="1" />
<label for="closing_template_id" />
<div>
<field name="closing_template_id" class="oe_inline" />
</div>
<field
name="company_id"
groups="base.group_multi_company"
/>
</group>
<group>
<field name="year" />
<field name="date_start" />
<field name="date_end" />
<field name="date_opening" />
<field name="check_draft_moves" />
</group>
</group>
<group attrs="{'invisible': [('calculation_date', '=', False)]}">
<group>
<field name="calculation_date" />
</group>
</group>
<group name="moves_config" string="Moves configuration">
<field name="move_config_ids" nolabel="1">
<tree>
<field name="sequence" widget="handle" />
<field name="enabled" />
<field name="name" />
<field name="code" />
<field name="inverse" />
<field name="move_type" />
<field name="date" />
<field name="journal_id" />
</tree>
<form>
<sheet>
<group>
<group>
<field name="name" />
<field name="enabled" />
<field name="date" />
<field name="journal_id" />
<field name="sequence" />
</group>
<group>
<field name="code" />
<field name="inverse" />
<field name="move_type" />
</group>
</group>
<group
name="accounts_mapping"
string="Accounts mapping"
>
<field name="mapping_ids" nolabel="1">
<tree editable="bottom">
<field name="name" />
<field name="src_accounts" />
<field name="dest_account_id" />
</tree>
</field>
</group>
<group
name="accounts_closing_types"
string="Accounts closing types"
>
<field name="closing_type_default" />
</group>
<group>
<field name="closing_type_ids" nolabel="1">
<tree editable="bottom">
<field name="account_type_id" />
<field name="closing_type" />
</tree>
</field>
</group>
</sheet>
</form>
</field>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_account_fiscalyear_closing_search" model="ir.ui.view">
<field name="name">account.fiscalyear.closing.search</field>
<field name="model">account.fiscalyear.closing</field>
<field name="arch" type="xml">
<search string="Fiscal year closing">
<field name="name" />
<filter string="Draft" name="draft" domain="[('state','=','draft')]" />
<filter
string="In process"
name="in_process"
domain="[('state', '=', 'calculated')]"
/>
<filter
string="Posted"
name="posted"
domain="[('state', '=', 'posted')]"
/>
<filter
string="Cancelled"
name="cancelled"
domain="[('state', '=', 'cancelled')]"
/>
<filter
string="Company"
name="company"
domain="[]"
context="{'group_by': 'company_id'}"
groups="base.group_multi_company"
/>
</search>
</field>
</record>
<record id="action_account_fiscalyear_closing" model="ir.actions.act_window">
<field name="name">Fiscal year closings</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.fiscalyear.closing</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_account_fiscalyear_closing_tree" />
</record>
<menuitem
id="menu_account_fiscalyear_closing"
parent="account.menu_finance_entries"
sequence="90"
name="Fiscal year closings"
action="action_account_fiscalyear_closing"
/>
</flectra>