<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="action_view_current_project_issue_tree" model="ir.actions.act_window">
            <field name="name">Project issues</field>
            <field name="res_model">project.issue</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('state','in',['draft','open'])]</field>
           <field name="view_id" ref="project_issue.project_issue_tree_view"/>
        </record>

        <record id="action_view_pending_project_issue_tree" model="ir.actions.act_window">
            <field name="name">Project issues</field>
            <field name="res_model">project.issue</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('state','=','pending')]</field>
           <field name="view_id" ref="project_issue.project_issue_tree_view"/>
        </record>

        <record id="action_project_issue_graph_state" model="ir.actions.act_window">
            <field name="name">Project Issue</field>
            <field name="res_model">project.issue.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">graph</field>
            <field name="domain">[]</field>
            <field name="view_id" ref="project_issue.view_project_issue_report_graph"/>
        </record>

        <record id="view_project_issue_graph_stage" model="ir.ui.view">
            <field name="name">project.issue.report.graph</field>
            <field name="model">project.issue.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Project Issue" type="bar">
                    <field name="stage_id"/>
                    <field name="nbr" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

        <record id="action_project_issue_graph_stage" model="ir.actions.act_window">
            <field name="name">Project Issue</field>
            <field name="res_model">project.issue.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">graph</field>
            <field name="domain">[]</field>
            <field name="view_id" ref="view_project_issue_graph_stage"/>
        </record>

        <record id="board_project_issue_form" model="ir.ui.view">
            <field name="name">board.project.issue.form</field>
            <field name="model">board.board</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="My Board">
                    <hpaned>
                        <child1>
                            <action colspan="4"  name="%(action_view_current_project_issue_tree)d" string="Current Issues" width="510"/>
                            <action colspan="4"  name="%(action_view_pending_project_issue_tree)d" string="Pending Issues" width="510"/>
                        </child1>
                        <child2>
                        <vpaned>
                            <child1>
                                <action colspan="4"  name="%(action_project_issue_graph_state)d" string="Issues By State" />
                            </child1>
                            <child2>
                                <action colspan="4"  name="%(action_project_issue_graph_stage)d" string="Issues By Stage" />
                            </child2>
                        </vpaned>
                        </child2>
                    </hpaned>
                </form>
            </field>
        </record>

        <record id="open_board_project_issue" model="ir.actions.act_window">
            <field name="name">Project Issue Dashboard</field>
            <field name="res_model">board.board</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="usage">menu</field>
            <field name="view_id" ref="board_project_issue_form"/>
        </record>
        <menuitem id="menu_deshboard_project_issue" name="Project Issue Dashboard" parent="project.next_id_86"
         	icon="terp-graph"
            action="open_board_project_issue"/>
    </data>
</openerp>
