Files
tryton/fiscalyear.xml
T
Cédric Krier a33afb9d1b New fiscal year closing method:
- don't create move to deferral amount
- add a new object AccountDeferral to handle the debit/credit by fiscal year
  to deferral
- add button to close/reopen fiscal year
- modify the debit/credit/balance on account to take the amount from the
  AccountDeferral object
- add constraint on closing or re-opening fiscal year
- remove close_method on account and use a boolean deferral instead
- check that balance of non deferral accounts is zero when closing fiscal year
2008-09-19 15:00:26 +02:00

105 lines
4.8 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<menuitem name="Fiscal Years" parent="menu_account_configuration"
id="menu_fiscalyear_configuration"/>
<record model="ir.ui.view" id="fiscalyear_view_form">
<field name="model">account.fiscalyear</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Fiscal Year">
<label name="name"/>
<field name="name"/>
<label name="code"/>
<field name="code"/>
<label name="start_date"/>
<field name="start_date"/>
<label name="end_date"/>
<field name="end_date"/>
<label name="company"/>
<field name="company"/>
<label name="state"/>
<field name="state"/>
<notebook colspan="4">
<page string="Periods">
<field name="periods" colspan="4"/>
<group col="2" colspan="4">
<button name="create_period" string="Create Monthly Periods"
type="object"
states="{'invisible': '''state != 'open' or periods '''}"/>
<button name="create_period_3" string="Create 3 Months Periods"
type="object"
states="{'invisible': '''state != 'open' or periods '''}"/>
</group>
</page>
<page string="Sequences">
<label name="post_move_sequence"/>
<field name="post_move_sequence"/>
</page>
</notebook>
<label string="" colspan="2"/>
<group col="1" colspan="2">
<button name="close" string="Close" type="object"
states="{'invisible': '''state != 'open' '''}"/>
<button name="reopen" string="Re-Open" type="object"
states="{'invisible': '''state != 'close' '''}"/>
</group>
</form>
]]>
</field>
</record>
<record model="ir.ui.view" id="fiscalyear_view_tree">
<field name="model">account.fiscalyear</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Fiscal Years">
<field name="name" select="1"/>
<field name="code" select="1"/>
<field name="state" select="1"/>
</tree>
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_fiscalyear_form">
<field name="name">Fiscal Years</field>
<field name="res_model">account.fiscalyear</field>
<field name="view_type">form</field>
</record>
<record model="ir.action.act_window.view" id="act_fiscalyear_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="fiscalyear_view_tree"/>
<field name="act_window" ref="act_fiscalyear_form"/>
</record>
<record model="ir.action.act_window.view" id="act_fiscalyear_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="fiscalyear_view_form"/>
<field name="act_window" ref="act_fiscalyear_form"/>
</record>
<menuitem parent="menu_fiscalyear_configuration"
action="act_fiscalyear_form" id="menu_fiscalyear_form"/>
<record model="ir.ui.view" id="fiscalyear_close_fiscalyear_init_view_form">
<field name="model">account.fiscalyear.close_fiscalyear.init</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Close Fiscal Year">
<label name="close_fiscalyear"/>
<field name="close_fiscalyear"/>
</form>
]]>
</field>
</record>
<record model="ir.action.wizard" id="act_close_fiscalyear">
<field name="name">Close Fiscal Year</field>
<field name="wiz_name">account.fiscalyear.close_fiscalyear</field>
</record>
<menuitem parent="menu_processing" action="act_close_fiscalyear"
id="menu_close_fiscalyear"/>
</data>
</tryton>