1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_account_fiscalyear_close_state" model="ir.ui.view">
5 <field name="name">account.fiscalyear.close.state.form</field>
6 <field name="model">account.fiscalyear.close.state</field>
7 <field name="type">form</field>
8 <field name="arch" type="xml">
9 <form string="Close states of Fiscal year and periods" version="7.0">
11 <button icon="gtk-cancel" special="cancel" string="Cancel"/>
12 <button icon="terp-locked" string="Close Fiscalyear" name="data_save" type="object"/>
14 <separator string="Close states of Fiscal year and periods"/>
15 <label string ="If no additional entries should be recorded on a fiscal year, you can close it from here. It will close all opened periods in this year that will make impossible any new entry record. Close a fiscal year when you need to finalize your end of year results definitive "/>
17 <field name="fy_id" domain="[('state','=','draft')]"/>
23 <record id="action_account_fiscalyear_close_state" model="ir.actions.act_window">
24 <field name="name">Close a Fiscal Year</field>
25 <field name="res_model">account.fiscalyear.close.state</field>
26 <field name="view_type">form</field>
27 <field name="view_mode">tree,form</field>
28 <field name="view_id" ref="view_account_fiscalyear_close_state"/>
29 <field name="target">new</field>
32 <menuitem action="action_account_fiscalyear_close_state"
33 id="menu_wizard_fy_close_state"
35 parent="menu_account_end_year_treatments" />