<?xml version="1.0"?>
 <openerp>
     <data>
        <record model="board.note.type" id="note_document_type">
            <field name="name">Document</field>
         </record>

        <record model="ir.ui.view" id="board_document_manager_form">
            <field name="name">board.document.manager.form</field>
             <field name="model">board.board</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
                <form string="Document board">
                     <hpaned position="100">
                        <child1>
                            <action
                                string="New Files"
                                name="%(document.action_view_all_document_tree1)d"
                                view_mode="tree"
                                domain="[('name','=',time.strftime('%%Y')),('month','=',time.strftime('%%m'))]"/>

                            <action
                                string="File Size by Month"
                                name="%(document.action_view_size_month)d"
                                view_mode="graph,tree"/>
                        </child1>
                        <child2>
                            <action
                                string="Files by Resource Type"
                                name="%(document.action_view_document_by_resourcetype_graph)d"
                                view_mode="graph,tree"/>

                            <action
                                string="Files by Partner"
                                name="%(document.action_view_files_by_partner)d"
                                view_mode="graph,tree"/>
                        </child2>
                     </hpaned>
                 </form>
             </field>
         </record>


        <record model="ir.actions.act_window" id="open_board_document_manager">
            <field name="name">Document Dashboard</field>
             <field name="res_model">board.board</field>
             <field name="view_type">form</field>
             <field name="view_mode">form</field>

            <field name="view_id" ref="board_document_manager_form"/>
         </record>

        <menuitem id="menu_reporting" name="Reporting" sequence="2" parent="knowledge.menu_document"/>
         <menuitem
            name="Dashboard"
            id="menu_reports_document"
            parent="menu_reporting"
            sequence="0"
            groups="base.group_system"/>


         <menuitem
            parent="menu_reports_document"
            action="open_board_document_manager"
            sequence="1"
            id="menu_reports_document_manager"
            icon="terp-graph"/>

         <menuitem name="Knowledge" icon="terp-stock" id="knowledge.menu_document"
            sequence="19" groups="base.group_system,base.group_document_user" action="open_board_document_manager"/>

        <record model="ir.ui.view" id="board_document_manager_form1">
            <field name="name">board.document.manager.form1</field>
             <field name="model">board.board</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
                <form string="Document board">
                     <hpaned position="100">
                        <child1>
                            <action
                                string="Wall of Shame"
                                name="%(document.action_view_wall)d"
                                view_mode="tree"/>

                        </child1>
                        <child2>
                            <action
                                string="Files by Users"
                                name="%(document.action_view_user_graph)d"
                                view_mode="graph,tree"/>

                            <action
                                string="Files by Month"
                                name="%(document.action_view_files_by_month_graph)d"
                                view_mode="graph,tree"/>
                        </child2>
                     </hpaned>
                 </form>
            </field>
        </record>


        <record model="ir.actions.act_window" id="open_board_document_manager1">
            <field name="name">Statistics by User</field>
            <field name="res_model">board.board</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="board_document_manager_form1"/>
        </record>

        <menuitem
            parent="menu_reports_document"
            action="open_board_document_manager1"
            sequence="1"
            id="menu_reports_document_manager1"
            icon="terp-graph"/>
     </data>
 </openerp>
