<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <menuitem icon="terp-project" id="menu_main" name="Project Management"/>
        
        <record id="action_account_analytic_managed" model="ir.actions.act_window">
            <field name="name">My managed accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="domain">[('user_id','=',uid)]</field>
        </record>
        
        <menuitem id="next_id_71" name="Analytic Accounts" parent="account_analytic_analysis.menu_main"/><menuitem action="action_account_analytic_managed" id="menu_analytic_account_managed" parent="next_id_71"/>
        
        <record id="action_hr_tree_invoiced_my" model="ir.actions.act_window">
            <field name="name">Uninvoiced entries of my accounts</field>
            <field name="res_model">account.analytic.line</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('invoice_id','=',False),('to_invoice','!=',False),('account_id.user_id','=',uid)]</field>
        </record>
        
        <menuitem action="action_hr_tree_invoiced_my" id="menu_action_hr_tree_invoiced_my" parent="account_analytic_analysis.next_id_71"/>
        
        <record id="action_account_analytic_managed_open" model="ir.actions.act_window">
            <field name="name">My Open Managed Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="domain">[('user_id','=',uid),('state','=','open')]</field>
        </record>
        
        <menuitem action="action_account_analytic_managed_open" id="menu_analytic_account_to_valid_open" parent="account_analytic_analysis.menu_analytic_account_managed"/>
        
        <record id="action_account_analytic_managed_pending" model="ir.actions.act_window">
            <field name="name">My Pending Managed Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="domain">[('user_id','=',uid),('state','=','pending')]</field>
        </record>
        
        <menuitem action="action_account_analytic_managed_pending" id="menu_analytic_account_to_valid_pending" parent="account_analytic_analysis.menu_analytic_account_managed"/>
        
        <record id="action_account_analytic_managed_overpassed" model="ir.actions.act_window"> 
            <field name="name">Overpassed accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="domain">[('date','&lt;=',time.strftime('%Y-%m-%d')),('state','=','open')]</field>
        </record>
        
        <menuitem action="action_account_analytic_managed_overpassed" id="menu_action_account_analytic_managed_overpassed" parent="account_analytic_analysis.next_id_71"/>
        
        <record id="action_account_analytic_all" model="ir.actions.act_window">
            <field name="name">All Analytic Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="account.view_account_analytic_account_list"/>
            <field name="domain">[]</field>
        </record>
        
        <menuitem action="action_account_analytic_all" id="menu_action_account_analytic_all" parent="account_analytic_analysis.next_id_71"/>
        
        <record id="action_account_analytic_all_draft" model="ir.actions.act_window">
            <field name="name">Draft Analytic Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="account.view_account_analytic_account_list"/>
            <field name="domain">[('state','=','draft')]</field>
        </record>
        
        <menuitem id="next_id_72" name="All Analytic Accounts" parent="account_analytic_analysis.next_id_71"/><menuitem action="action_account_analytic_all_draft" id="menu_action_account_analytic_all_draft" parent="next_id_72"/>
        
        <record id="action_account_analytic_all_open" model="ir.actions.act_window">
            <field name="name">Open Analytic Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="account.view_account_analytic_account_list"/>
            <field name="domain">[('state','=','open')]</field>
        </record>
        
        <menuitem action="action_account_analytic_all_open" id="menu_action_account_analytic_all_open" parent="account_analytic_analysis.next_id_72"/>
        
        <record id="action_account_analytic_all_pending" model="ir.actions.act_window">
            <field name="name">Pending Analytic Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="account.view_account_analytic_account_list"/>
            <field name="domain">[('state','=','pending')]</field>
        </record>
        
        <menuitem action="action_account_analytic_all_pending" id="menu_action_account_analytic_all_pending" parent="account_analytic_analysis.next_id_72"/>
        
        <record id="action_account_analytic_all_simplified" model="ir.actions.act_window">
            <field name="name">Simplified View Analytic Accounts</field>
            <field name="res_model">account.analytic.account</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_account_analytic_simplified"/>
            <field name="domain">[]</field>
        </record>
        
        <menuitem action="action_account_analytic_all_simplified" id="menu_action_account_analytic_all_simplified" parent="account_analytic_analysis.next_id_72"/>
        
    </data>
</terp>