diff options
| author | ced <> | 2006-12-08 15:36:28 +0000 |
|---|---|---|
| committer | ced <> | 2006-12-08 15:36:28 +0000 |
| commit | dd65cc47de05e295d6ec8e8a5b8a8401c7b8ee18 (patch) | |
| tree | a4303c616c3c3e3d1505a743f2eccfb012e8610f | |
| parent | 232e2de0bf8bb55a1987dab68691c6f9479e390b (diff) | |
Fix graph for '/'
Add board for sale manager
bzr revid: ced-1ec550f2690647863c247131b72bda65c2f4ea81
| -rw-r--r-- | addons/board_sale/__init__.py | 28 | ||||
| -rw-r--r-- | addons/board_sale/__terp__.py | 11 | ||||
| -rw-r--r-- | addons/board_sale/board_sale_view.xml | 38 | ||||
| -rw-r--r-- | addons/report_sale/report_sale_view.xml | 13 |
4 files changed, 89 insertions, 1 deletions
diff --git a/addons/board_sale/__init__.py b/addons/board_sale/__init__.py new file mode 100644 index 00000000000..60d9e61f8bf --- /dev/null +++ b/addons/board_sale/__init__.py @@ -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 index 00000000000..5e1b5ccfc41 --- /dev/null +++ b/addons/board_sale/__terp__.py @@ -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 index 00000000000..1cad6cea1da --- /dev/null +++ b/addons/board_sale/board_sale_view.xml @@ -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> diff --git a/addons/report_sale/report_sale_view.xml b/addons/report_sale/report_sale_view.xml index 2201261d582..7c7bef2f952 100644 --- a/addons/report_sale/report_sale_view.xml +++ b/addons/report_sale/report_sale_view.xml @@ -97,6 +97,17 @@ </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> @@ -109,7 +120,7 @@ <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"/> |
