Fix graph for '/'
authorced <>
Fri, 8 Dec 2006 15:36:28 +0000 (15:36 +0000)
committerced <>
Fri, 8 Dec 2006 15:36:28 +0000 (15:36 +0000)
Add board for sale manager

bzr revid: ced-1ec550f2690647863c247131b72bda65c2f4ea81

addons/board_sale/__init__.py [new file with mode: 0644]
addons/board_sale/__terp__.py [new file with mode: 0644]
addons/board_sale/board_sale_view.xml [new file with mode: 0644]
addons/report_sale/report_sale_view.xml

diff --git a/addons/board_sale/__init__.py b/addons/board_sale/__init__.py
new file mode 100644 (file)
index 0000000..60d9e61
--- /dev/null
@@ -0,0 +1,28 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+
diff --git a/addons/board_sale/__terp__.py b/addons/board_sale/__terp__.py
new file mode 100644 (file)
index 0000000..5e1b5cc
--- /dev/null
@@ -0,0 +1,11 @@
+{
+       "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,
+}
diff --git a/addons/board_sale/board_sale_view.xml b/addons/board_sale/board_sale_view.xml
new file mode 100644 (file)
index 0000000..1cad6ce
--- /dev/null
@@ -0,0 +1,38 @@
+<?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>
index 2201261..7c7bef2 100644 (file)
                </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"/>