diff options
| author | sbh (Open ERP) <sbh@tinyerp.com> | 2010-06-07 16:36:30 +0530 |
|---|---|---|
| committer | sbh (Open ERP) <sbh@tinyerp.com> | 2010-06-07 16:36:30 +0530 |
| commit | e06795b3f1d03d2aabc7cfd790b1fd104d89a70f (patch) | |
| tree | 0c793b1c5e7a8bf65ca191374e24a830bc378415 /addons/document | |
| parent | 15d2ad19ec0c0d944a70cd383c9e67aa07dc28cf (diff) | |
Task-919 : Merge the board of sale,purchase,document
bzr revid: sbh@tinyerp.com-20100607110630-3uszeemgepx76cus
Diffstat (limited to 'addons/document')
| -rw-r--r-- | addons/document/__openerp__.py | 7 | ||||
| -rw-r--r-- | addons/document/board_document_demo.xml | 17 | ||||
| -rw-r--r-- | addons/document/board_document_view.xml | 114 |
3 files changed, 135 insertions, 3 deletions
diff --git a/addons/document/__openerp__.py b/addons/document/__openerp__.py index ac227827d11..1a8a6e32e48 100644 --- a/addons/document/__openerp__.py +++ b/addons/document/__openerp__.py @@ -36,16 +36,17 @@ """, 'author': 'Tiny', 'website': 'http://www.openerp.com', - 'depends': ['base', 'process'], + 'depends': ['base', 'process','board'], 'init_xml': [], 'update_xml': [ 'document_view.xml', 'document_data.xml', 'security/document_security.xml', 'security/ir.model.access.csv', - 'report/document_report_view.xml' + 'report/document_report_view.xml', + 'board_document_view.xml', ], - 'demo_xml': [ 'document_demo.xml',], + 'demo_xml': [ 'document_demo.xml','board_document_demo.xml'], 'test': [ 'test/document_test.yml', ], diff --git a/addons/document/board_document_demo.xml b/addons/document/board_document_demo.xml new file mode 100644 index 00000000000..6f8f8ffa39e --- /dev/null +++ b/addons/document/board_document_demo.xml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<openerp> + <data noupdate="1"> + + <!-- + Administrator shortcut + Demo user startup menu + --> + <record model="ir.ui.view_sc" id="sc_document_dash"> + <field name="name">Documents dashboard</field> + <field name="user_id" ref="base.user_root"/> + <field name="resource">ir.ui.menu</field> + <field name="sequence">1</field> + <field name="res_id" ref="menu_board_document_manager"/> + </record> + </data> + </openerp> diff --git a/addons/document/board_document_view.xml b/addons/document/board_document_view.xml new file mode 100644 index 00000000000..4d89f96cbfb --- /dev/null +++ b/addons/document/board_document_view.xml @@ -0,0 +1,114 @@ +<?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 icon="terp-graph" id="base.dashboard" name="Dashboards" sequence="2" parent="base.reporting_menu"/> + <menuitem + name="Document" + id="menu_board_document" + parent="base.dashboard" + groups="document.group_document_manager"/> + + + <menuitem + parent="menu_board_document" + action="open_board_document_manager" + sequence="1" + id="menu_board_document_manager" + icon="terp-graph"/> + + <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_board_document" + action="open_board_document_manager1" + sequence="1" + id="menu_board_document_manager1" + icon="terp-graph"/> + </data> + </openerp> |
