From caa621da2e7634d6d415c87fef19b2d4f995c4d2 Mon Sep 17 00:00:00 2001 From: "Vir (Open ERP)" Date: Tue, 19 Jan 2010 14:39:59 +0530 Subject: [PATCH] [ADD] olap_crm : Module added bzr revid: vir@tinyerp.com-20100119090959-623ji0ydx9uf1z25 --- addons/olap_crm/__init__.py | 22 ++ addons/olap_crm/__terp__.py | 37 +++ addons/olap_crm/i18n/fr_BE.po | 29 ++ addons/olap_crm/i18n/olap_crm.pot | 29 ++ addons/olap_crm/olap_crm.xml | 462 ++++++++++++++++++++++++++++++ addons/olap_crm/olap_data.xml | 5 + 6 files changed, 584 insertions(+) create mode 100755 addons/olap_crm/__init__.py create mode 100644 addons/olap_crm/__terp__.py create mode 100644 addons/olap_crm/i18n/fr_BE.po create mode 100644 addons/olap_crm/i18n/olap_crm.pot create mode 100755 addons/olap_crm/olap_crm.xml create mode 100755 addons/olap_crm/olap_data.xml diff --git a/addons/olap_crm/__init__.py b/addons/olap_crm/__init__.py new file mode 100755 index 00000000000..40d842dcc48 --- /dev/null +++ b/addons/olap_crm/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +import olap_crm \ No newline at end of file diff --git a/addons/olap_crm/__terp__.py b/addons/olap_crm/__terp__.py new file mode 100644 index 00000000000..794b65138b4 --- /dev/null +++ b/addons/olap_crm/__terp__.py @@ -0,0 +1,37 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + "name" : "olap_crm", + "version" : "0.1", + "author" : "Tiny", + "website" : "http://www.openerp.com", + "depends" : ["olap"], + "category" : "Generic Modules/Olap", + "description": """ + Sale module will load the data in olap tables + """, + "init_xml" : ['olap_data.xml'], + "update_xml" :[], + "demo_xml" : ['olap_crm.xml'], + "active": False, + "installable": True +} diff --git a/addons/olap_crm/i18n/fr_BE.po b/addons/olap_crm/i18n/fr_BE.po new file mode 100644 index 00000000000..f93a3dfa8e2 --- /dev/null +++ b/addons/olap_crm/i18n/fr_BE.po @@ -0,0 +1,29 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * olap_crm +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 5.0.6\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2009-11-26 05:29:03+0000\n" +"PO-Revision-Date: 2009-11-26 05:29:03+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: olap_crm +#: model:ir.module.module,description:olap_crm.module_meta_information +msgid "\n" +" Sale module will load the data in olap tables\n" +" " +msgstr "" + +#. module: olap_crm +#: model:ir.module.module,shortdesc:olap_crm.module_meta_information +msgid "olap_crm" +msgstr "" + diff --git a/addons/olap_crm/i18n/olap_crm.pot b/addons/olap_crm/i18n/olap_crm.pot new file mode 100644 index 00000000000..f93a3dfa8e2 --- /dev/null +++ b/addons/olap_crm/i18n/olap_crm.pot @@ -0,0 +1,29 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * olap_crm +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 5.0.6\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2009-11-26 05:29:03+0000\n" +"PO-Revision-Date: 2009-11-26 05:29:03+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: olap_crm +#: model:ir.module.module,description:olap_crm.module_meta_information +msgid "\n" +" Sale module will load the data in olap tables\n" +" " +msgstr "" + +#. module: olap_crm +#: model:ir.module.module,shortdesc:olap_crm.module_meta_information +msgid "olap_crm" +msgstr "" + diff --git a/addons/olap_crm/olap_crm.xml b/addons/olap_crm/olap_crm.xml new file mode 100755 index 00000000000..96dadb7d783 --- /dev/null +++ b/addons/olap_crm/olap_crm.xml @@ -0,0 +1,462 @@ + + + + + + + + Open ERP CRM Database + crm + postgres + postgres + + + + OpenERPCRM + none + + + + + + + + + crm_case + crm_case + + True + + + + crm_case_categ + crm_case_categ + + True + + + + crm_case_stage + crm_case_stage + + True + + + + res_partner + res_partner + + True + + + + crm_case_section + crm_case_section + + True + + + res_partner_canal + res_partner_canal + + True + + + + + + + id + id + int4 + + True + True + + + planned_revenue + planned_revenue + float8 + + True + + + parnter_id + partner_id + float8 + + True + + + + + id + id + float8 + + True + + + probability + probability + float8 + + True + + + state + state + varchar + + True + + + + name + name + varchar + + True + + + + + + + + categ_id + categ_id + int4 + + + + + + partner_id + partner_id + int4 + + + + + + canal_id + canal_id + int4 + + + + + + + name + name + varchar + + + + + name + name + varchar + + + + name + name + varchar + + + + + stage_id + stage_id + int4 + + + + + + section_id + section_id + int4 + + + + + + name + name + varchar + + + + + + + + + + crm_cube + + + + + + + crm_cube_section + + + + + + crm_cube_stage_parnter + + + + + crm_cube_parnter + + + + + + + crm_cube_categ + + + + + + crm_cube_channel + + + + + + + + + + + + + + + + + + + + + CRM + + + + + + + + Sections + + + + + + Sections + + + + + + Sections + + name + crm_case_section + + 1 + + + + States + + name + crm_case_stage + + 2 + + + + + + States + + + + + + States + + + + + + States + + state + crm_case + + 1 + + + + States + + name + crm_case_stage + + 2 + + + + + + + Category + + + + + + Category + + crm_case + + + + + name + + name + crm_case_categ + + + + + + Customer + + + + + Customer + + crm_case + + + + + name + + name + res_partner + + + + + + + Channels + + + + + + Channel + + + + + + Channel + + name + res_partner_canal + + 1 + + + + + + + + Total Cases + + sql_expr + count(crm_case.id) + + + + Average Planned Revenue + + sql_expr + avg(crm_case.planned_revenue) + cr_postfix_comma + + + + Average Planned Cost + + sql_expr + avg(crm_case.planned_cost) + cr_postfix_comma + + + + Planned Revenue + + + planned_cost + crm_case + sum + cr_postfix_comma + + + + Planned Revenue + + + planned_revenue + crm_case + sum + + + + Probability + + + probability + crm_case + sum + +d + + + diff --git a/addons/olap_crm/olap_data.xml b/addons/olap_crm/olap_data.xml new file mode 100755 index 00000000000..d36ec6161fe --- /dev/null +++ b/addons/olap_crm/olap_data.xml @@ -0,0 +1,5 @@ + + + + +