<?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"
+ <board style="2-1" >
+ <column>
+ <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"
+ view_mode="tree,form"/>
+ </column>
+ <column>
+ <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>
+ </column>
+ </board>
</form>
</field>
</record>
id="menu_reports_document"
parent="menu_reporting"
sequence="0"
- groups="document.group_document_manager"/>
+ groups="base.group_system"/>
<menuitem
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"
+ <board style="2-1">
+ <column>
+ <action string="Wall of Shame"
name="%(document.action_view_wall)d"
view_mode="tree"/>
- </child1>
- <child2>
- <action
- string="Files by Users"
+ </column>
+ <column>
+ <action string="Files by Users"
name="%(document.action_view_user_graph)d"
view_mode="graph,tree"/>
- <action
- string="Files by Month"
+ <action string="Files by Month"
name="%(document.action_view_files_by_month_graph)d"
view_mode="graph,tree"/>
- </child2>
- </hpaned>
+ </column>
+ </board>
</form>
</field>
</record>