[IMP] fetchmail_crm: Add a link between the fetchmail and crm modules
authorStephane Wirtel <stw@openerp.com>
Thu, 22 Sep 2011 07:33:57 +0000 (09:33 +0200)
committerStephane Wirtel <stw@openerp.com>
Thu, 22 Sep 2011 07:33:57 +0000 (09:33 +0200)
bzr revid: stw@openerp.com-20110922073357-c8igqv5hbc98jpg1

addons/fetchmail_crm/__init__.py [new file with mode: 0644]
addons/fetchmail_crm/__openerp__.py [new file with mode: 0644]
addons/fetchmail_crm/installer.xml [new file with mode: 0644]

diff --git a/addons/fetchmail_crm/__init__.py b/addons/fetchmail_crm/__init__.py
new file mode 100644 (file)
index 0000000..5831b32
--- /dev/null
@@ -0,0 +1,20 @@
+#-*- coding:utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
diff --git a/addons/fetchmail_crm/__openerp__.py b/addons/fetchmail_crm/__openerp__.py
new file mode 100644 (file)
index 0000000..2be9920
--- /dev/null
@@ -0,0 +1,39 @@
+#-*- coding:utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+    "name" : "Fetchmail for CRM",
+    "version" : "1.0",
+    "depends" : ["fetchmail", "crm"],
+    "author" : "OpenERP SA",
+    "category": 'Tools',
+    "description": """
+    """,
+    'website': 'http://www.openerp.com',
+    'init_xml': [],
+    'update_xml': [
+        "installer.xml",
+    ],
+    'demo_xml': [
+    ],
+    'installable': True,
+    'active': False,
+}
diff --git a/addons/fetchmail_crm/installer.xml b/addons/fetchmail_crm/installer.xml
new file mode 100644 (file)
index 0000000..da5a4d8
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record model="ir.actions.act_window" id="action_create_crm_leads_from_email_account">
+            <field name="name">Create Leads from Email Account</field>
+            <field name="type">ir.actions.act_window</field>
+            <field name="res_model">fetchmail.server</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">form</field>
+            <field name="context">{'default_name' : "Email Account For Leads", 'fetchmail_model' : 'crm.lead'}</field>
+        </record>
+
+        <record model="ir.actions.todo" id="config_wizard_action_create_crm_leads_from_email_account">
+            <field name="action_id" ref="action_create_crm_leads_from_email_account" />
+            <field name="category_id" ref="base.category_administration_config" />
+        </record>
+    </data>
+</openerp>