ACCOUNT: add fiscalyear test in the accounting instead of active
[odoo/odoo.git] / addons / account / account_end_fy.xml
1 <?xml version="1.0"?>
2 <terp>
3 <data>
4
5         <menuitem name="Financial Management/End of year treatments" sequence="20"/>
6
7         <record model="ir.actions.act_window" id="action_account_period_tree">
8                 <field name="res_model">account.period</field>
9                 <field name="view_type">tree</field>
10                 <field name="domain">[('state','=','draft')]</field>
11                 <field name="view_id" ref="view_account_period_tree"/>
12         </record>
13         <menuitem name="Financial Management/End of year treatments/Close a period"
14                 id="menu_action_account_period_close_tree"
15                 action="action_account_period_tree" />
16
17         <record model="ir.actions.act_window" id="action_account_fiscalyear_tree">
18                 <field name="name">Old fiscal years</field>
19                 <field name="res_model">account.fiscalyear</field>
20                 <field name="view_type">tree</field>
21                 <field name="domain">[('state','=','done')]</field>
22                 <field name="view_id" ref="view_account_fiscalyear_tree"/>
23         </record>
24         <menuitem name="Financial Management/End of year treatments/Old fiscal years"
25                 id="menu_action_account_fiscalyear_close_tree"
26                 action="action_account_fiscalyear_tree"/>
27
28 </data>
29 </terp>