--- /dev/null
+##############################################################################
+#
+# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# Fabien Pinckaers <fp@tiny.Be>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+##############################################################################
+
--- /dev/null
+{
+ "name":"Board for sale",
+ "version":"1.0",
+ "author":"Tiny",
+ "category":"Board",
+ "depends":["base","sale", "report_crm"],
+ "demo_xml":[],
+ "update_xml":["board_sale_view.xml"],
+ "active":False,
+ "installable":True,
+}
--- /dev/null
+<?xml version="1.0"?>
+<terp>
+ <data>
+
+ <record model="ir.ui.view" id="board_sales_manager_form">
+ <field name="name">board.sales.manager.form</field>
+ <field name="model">ir.board</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="Sales manager board">
+ <hpaned>
+ <child1>
+ <action string="Your open request quotation" name="%(sale.action_order_tree10)d" colspan="3"/>
+ <action string="Top ten sales of the month" name="%(report_sale.action_order_sale_list)d" colspan="3"/>
+ <action string="Sales of the month" name="%(sale.action_order_tree5)d" colspan="3"/>
+ </child1>
+
+ <child2>
+ <action string="Sales by Category of the month" name="%(report_sale.action_order_category_tree_all)d"
+ view_mode="graph,tree" colspan="3"/>
+ <action string="Cases of the month" name="%(report_crm.action_report_crm_case_user_tree_month)d" view_mode="graph,tree" colspan="3"/>
+ </child2>
+ </hpaned>
+ </form>
+ </field>
+ </record>
+
+ <record model="ir.actions.act_window" id="open_board_sales_manager">
+ <field name="name">board.sales.manager</field>
+ <field name="res_model">ir.board</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">form</field>
+ <field name="view_id" ref="board_sales_manager_form"/>
+ </record>
+
+ <menuitem name="Board/Sales Manager" action="open_board_sales_manager" sequence="1" id="menu_board_sales_manager"/>
+ </data>
+</terp>
</field>
</record>
+ <record model="ir.ui.view" id="view_order_category_graph">
+ <field name="name">report.sale.order.category.graph</field>
+ <field name="model">report.sale.order.category</field>
+ <field name="type">graph</field>
+ <field name="arch" type="xml">
+ <graph string="Sales Orders by category" type="pie">
+ <field name="category_id"/>
+ <field name="price_average"/>
+ </graph>
+ </field>
+ </record>
<record model="ir.actions.act_window" id="action_order_category_tree">
<field name="name">report.sale.order.category.tree</field>
<field name="res_model">report.sale.order.category</field>
<field name="name">report.sale.order.category.tree</field>
<field name="res_model">report.sale.order.category</field>
<field name="view_type">form</field>
- <field name="view_mode">tree</field>
+ <field name="view_mode">tree,graph</field>
</record>
<menuitem name="Sales Management/Reporting/All Months/Sales by Category of Product" action="action_order_category_tree_all" id="menu_report_order_category_all"/>