summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorDarshan Kalola <dka@openerp.com>2014-06-27 14:06:07 +0200
committerRichard Mathot <rim@openerp.com>2014-06-27 14:06:07 +0200
commit0b6404bd9d6edc6ad4b7bc2644275b4e7c06eca7 (patch)
treee67d83da3bd725a772f16c6197c81c83c1ad9dec /addons/plugin
parent9fc9f994a77c7a5240916e025ecdb32adf511008 (diff)
[REM] plugin/plugin_outlook/plugin_thunderbird
Unsupported modules, moved to https://github.com/odoo/odoo-extra. Closes #804
Diffstat (limited to 'addons/plugin')
-rw-r--r--addons/plugin/__init__.py25
-rw-r--r--addons/plugin/__openerp__.py41
-rw-r--r--addons/plugin/i18n/ar.po23
-rw-r--r--addons/plugin/i18n/cs.po23
-rw-r--r--addons/plugin/i18n/de.po23
-rw-r--r--addons/plugin/i18n/es.po23
-rw-r--r--addons/plugin/i18n/es_CR.po23
-rw-r--r--addons/plugin/i18n/fi.po23
-rw-r--r--addons/plugin/i18n/fr.po24
-rw-r--r--addons/plugin/i18n/hr.po23
-rw-r--r--addons/plugin/i18n/hu.po23
-rw-r--r--addons/plugin/i18n/it.po23
-rw-r--r--addons/plugin/i18n/ja.po23
-rw-r--r--addons/plugin/i18n/lt.po23
-rw-r--r--addons/plugin/i18n/mk.po23
-rw-r--r--addons/plugin/i18n/mn.po23
-rw-r--r--addons/plugin/i18n/nb.po23
-rw-r--r--addons/plugin/i18n/nl.po23
-rw-r--r--addons/plugin/i18n/plugin.pot22
-rw-r--r--addons/plugin/i18n/pt.po23
-rw-r--r--addons/plugin/i18n/pt_BR.po23
-rw-r--r--addons/plugin/i18n/ro.po23
-rw-r--r--addons/plugin/i18n/ru.po23
-rw-r--r--addons/plugin/i18n/sl.po23
-rw-r--r--addons/plugin/i18n/sv.po23
-rw-r--r--addons/plugin/i18n/tr.po23
-rw-r--r--addons/plugin/i18n/zh_CN.po23
-rw-r--r--addons/plugin/i18n/zh_TW.po23
-rw-r--r--addons/plugin/plugin_handler.py181
29 files changed, 0 insertions, 845 deletions
diff --git a/addons/plugin/__init__.py b/addons/plugin/__init__.py
deleted file mode 100644
index 1844c42011c..00000000000
--- a/addons/plugin/__init__.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# 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/>.
-#
-##############################################################################
-
-import plugin_handler
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/plugin/__openerp__.py b/addons/plugin/__openerp__.py
deleted file mode 100644
index 7af31450a87..00000000000
--- a/addons/plugin/__openerp__.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# 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': 'CRM Plugins',
- 'version': '1.0',
- 'category': 'Hidden/Dependency',
- 'description': """
-The common interface for plug-in.
-=================================
-""",
- 'author': 'OpenERP SA',
- 'website': 'http://www.openerp.com',
- 'depends': ['base'],
- 'data': [],
- 'demo': [],
- 'test': [],
- 'installable': True,
- 'auto_install': False,
- 'images': [],
-}
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/plugin/i18n/ar.po b/addons/plugin/i18n/ar.po
deleted file mode 100644
index ceb9ead0eb0..00000000000
--- a/addons/plugin/i18n/ar.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Arabic translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-04-06 07:59+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Arabic <ar@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/cs.po b/addons/plugin/i18n/cs.po
deleted file mode 100644
index 58a7dfa7bd7..00000000000
--- a/addons/plugin/i18n/cs.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Czech translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-04-06 06:59+0000\n"
-"Last-Translator: Jiří Hajda <robie@centrum.cz>\n"
-"Language-Team: Czech <cs@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/de.po b/addons/plugin/i18n/de.po
deleted file mode 100644
index 4c3b4d6b016..00000000000
--- a/addons/plugin/i18n/de.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# German translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-02-09 15:37+0000\n"
-"Last-Translator: Ferdinand <Unknown>\n"
-"Language-Team: German <de@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/es.po b/addons/plugin/i18n/es.po
deleted file mode 100644
index 3a4e85d7345..00000000000
--- a/addons/plugin/i18n/es.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Spanish translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-11-08 11:25+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Spanish <es@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "Manejador del plug-in"
diff --git a/addons/plugin/i18n/es_CR.po b/addons/plugin/i18n/es_CR.po
deleted file mode 100644
index 9c5fd67d481..00000000000
--- a/addons/plugin/i18n/es_CR.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Spanish (Costa Rica) translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-02-17 20:49+0000\n"
-"Last-Translator: Freddy Gonzalez <freddy.gonzalez.contreras@gmail.com>\n"
-"Language-Team: Spanish (Costa Rica) <es_CR@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/fi.po b/addons/plugin/i18n/fi.po
deleted file mode 100644
index 2cdde67739e..00000000000
--- a/addons/plugin/i18n/fi.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Finnish translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-06-24 12:58+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Finnish <fi@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/fr.po b/addons/plugin/i18n/fr.po
deleted file mode 100644
index eb06c7126fd..00000000000
--- a/addons/plugin/i18n/fr.po
+++ /dev/null
@@ -1,24 +0,0 @@
-# French translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-05-24 17:39+0000\n"
-"Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) "
-"<maxime.chambreuil@savoirfairelinux.com>\n"
-"Language-Team: French <fr@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/hr.po b/addons/plugin/i18n/hr.po
deleted file mode 100644
index 53a334e04cb..00000000000
--- a/addons/plugin/i18n/hr.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Croatian translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-12-09 20:44+0000\n"
-"Last-Translator: Goran Kliska <gkliska@gmail.com>\n"
-"Language-Team: Croatian <hr@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/hu.po b/addons/plugin/i18n/hu.po
deleted file mode 100644
index f396a5274ff..00000000000
--- a/addons/plugin/i18n/hu.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Hungarian translation for openobject-addons
-# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2013-02-09 10:39+0000\n"
-"Last-Translator: krnkris <Unknown>\n"
-"Language-Team: Hungarian <hu@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/it.po b/addons/plugin/i18n/it.po
deleted file mode 100644
index 54f078914b3..00000000000
--- a/addons/plugin/i18n/it.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Italian translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-12-15 10:49+0000\n"
-"Last-Translator: Sergio Corato <Unknown>\n"
-"Language-Team: Italian <it@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/ja.po b/addons/plugin/i18n/ja.po
deleted file mode 100644
index 01e56c5f933..00000000000
--- a/addons/plugin/i18n/ja.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Japanese translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-04-29 04:51+0000\n"
-"Last-Translator: Masaki Yamaya <Unknown>\n"
-"Language-Team: Japanese <ja@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/lt.po b/addons/plugin/i18n/lt.po
deleted file mode 100644
index 590e32bb57c..00000000000
--- a/addons/plugin/i18n/lt.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Lithuanian translation for openobject-addons
-# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2013-04-24 18:14+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Lithuanian <lt@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/mk.po b/addons/plugin/i18n/mk.po
deleted file mode 100644
index 781fb583d08..00000000000
--- a/addons/plugin/i18n/mk.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Macedonian translation for openobject-addons
-# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2013-03-01 17:19+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Macedonian <mk@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/mn.po b/addons/plugin/i18n/mn.po
deleted file mode 100644
index 2cfc4f6b957..00000000000
--- a/addons/plugin/i18n/mn.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Mongolian translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-08-24 06:21+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Mongolian <mn@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/nb.po b/addons/plugin/i18n/nb.po
deleted file mode 100644
index cb091e67462..00000000000
--- a/addons/plugin/i18n/nb.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Norwegian Bokmal translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-09-10 13:40+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Norwegian Bokmal <nb@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "Plugg.behandleren"
diff --git a/addons/plugin/i18n/nl.po b/addons/plugin/i18n/nl.po
deleted file mode 100644
index 3ec68cbe99e..00000000000
--- a/addons/plugin/i18n/nl.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Dutch translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-02-14 13:02+0000\n"
-"Last-Translator: Erwin van der Ploeg (BAS Solutions) <Unknown>\n"
-"Language-Team: Dutch <nl@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/plugin.pot b/addons/plugin/i18n/plugin.pot
deleted file mode 100644
index 0442bb950dc..00000000000
--- a/addons/plugin/i18n/plugin.pot
+++ /dev/null
@@ -1,22 +0,0 @@
-# Translation of OpenERP Server.
-# This file contains the translation of the following modules:
-# * plugin
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 7.0alpha\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-12-21 17:05+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: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr ""
-
diff --git a/addons/plugin/i18n/pt.po b/addons/plugin/i18n/pt.po
deleted file mode 100644
index 6ea4e5f19c5..00000000000
--- a/addons/plugin/i18n/pt.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Portuguese translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-05-22 09:45+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Portuguese <pt@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/pt_BR.po b/addons/plugin/i18n/pt_BR.po
deleted file mode 100644
index 59e1807fd08..00000000000
--- a/addons/plugin/i18n/pt_BR.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Brazilian Portuguese translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-02-16 01:34+0000\n"
-"Last-Translator: Rafael Sales - http://www.tompast.com.br <Unknown>\n"
-"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/ro.po b/addons/plugin/i18n/ro.po
deleted file mode 100644
index 20b9bf1cc92..00000000000
--- a/addons/plugin/i18n/ro.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Romanian translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-05-10 14:26+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Romanian <ro@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler (manipulare.extensie)"
diff --git a/addons/plugin/i18n/ru.po b/addons/plugin/i18n/ru.po
deleted file mode 100644
index e23d3099ce6..00000000000
--- a/addons/plugin/i18n/ru.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Russian translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-09-14 07:44+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Russian <ru@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/sl.po b/addons/plugin/i18n/sl.po
deleted file mode 100644
index cafcab85eb7..00000000000
--- a/addons/plugin/i18n/sl.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Slovenian translation for openobject-addons
-# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2013-01-30 20:35+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Slovenian <sl@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/sv.po b/addons/plugin/i18n/sv.po
deleted file mode 100644
index 19254ba8044..00000000000
--- a/addons/plugin/i18n/sv.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Swedish translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-06-04 15:14+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Swedish <sv@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/tr.po b/addons/plugin/i18n/tr.po
deleted file mode 100644
index b9eb85898c4..00000000000
--- a/addons/plugin/i18n/tr.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Turkish translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-08-21 19:51+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: Turkish <tr@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "eklenti.işlemci"
diff --git a/addons/plugin/i18n/zh_CN.po b/addons/plugin/i18n/zh_CN.po
deleted file mode 100644
index 73722decd37..00000000000
--- a/addons/plugin/i18n/zh_CN.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Chinese (Simplified) translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-02-14 09:58+0000\n"
-"Last-Translator: 开阖软件 Jeff Wang <jeff@osbzr.com>\n"
-"Language-Team: Chinese (Simplified) <zh_CN@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/i18n/zh_TW.po b/addons/plugin/i18n/zh_TW.po
deleted file mode 100644
index 53b6f3a173c..00000000000
--- a/addons/plugin/i18n/zh_TW.po
+++ /dev/null
@@ -1,23 +0,0 @@
-# Chinese (Traditional) translation for openobject-addons
-# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
-# This file is distributed under the same license as the openobject-addons package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: openobject-addons\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2012-12-21 17:05+0000\n"
-"PO-Revision-Date: 2012-08-21 06:38+0000\n"
-"Last-Translator: Eric Huang <eh@cenoq.com>\n"
-"Language-Team: Chinese (Traditional) <zh_TW@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-04-22 07:47+0000\n"
-"X-Generator: Launchpad (build 16985)\n"
-
-#. module: plugin
-#: model:ir.model,name:plugin.model_plugin_handler
-msgid "plugin.handler"
-msgstr "plugin.handler"
diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py
deleted file mode 100644
index 932ea4ccbb6..00000000000
--- a/addons/plugin/plugin_handler.py
+++ /dev/null
@@ -1,181 +0,0 @@
-'''
-Created on 18 oct. 2011
-
-@author: openerp
-'''
-
-from openerp.osv import osv
-from openerp.tools.translate import _
-
-class plugin_handler(osv.osv_memory):
- _name = 'plugin.handler'
-
- def _make_url(self, cr, uid, res_id, model, context=None):
- """
- @param res_id: on which document the message is pushed
- @param model: name of the document linked with the mail
- @return url
- """
- base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url', default='http://localhost:8069', context=context)
- if base_url:
- user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
- base_url += '/login?db=%s&login=%s&key=%s#id=%s&model=%s' % (cr.dbname, user.login, user.password, res_id, model)
- return base_url
-
- def is_installed(self, cr, uid):
- return True
-
- def partner_get(self, cr, uid, address_email):
- partner_obj = self.pool.get('res.partner')
- partner_ids = partner_obj.search(cr, uid, [('email', 'like', address_email)])
- res_id = partner_ids and partner_ids[0] or 0
- url = self._make_url(cr, uid, res_id, 'res.partner')
- return ('res.partner', res_id, url)
-
- def document_get(self, cr, uid, email):
- """
- @param email: email is a standard RFC2822 email message
- @return Dictionary which contain id and the model name of the document linked with the mail
- if no document is found the id = 0
- (model_name, res_id, url, name_get)
- """
- mail_message_obj = self.pool.get('mail.message')
- model = ""
- res_id = 0
- url = ""
- name = ""
- msg = self.pool.get('mail.thread').message_parse(cr, uid, email)
- parent_id = msg.get('parent_id', False)
- message_id = msg.get('message_id')
- msg_id = False
- if message_id:
- msg_ids = mail_message_obj.search(cr, uid, [('message_id', '=', message_id)])
- msg_id = len(msg_ids) and msg_ids[0] or False
- if not msg_id and parent_id:
- msg_id = parent_id
- if msg_id:
- msg = mail_message_obj.browse(cr, uid, msg_id)
- res_id = msg.res_id
- model = msg.model
- url = self._make_url(cr, uid, res_id, model)
- name = self.pool[model].name_get(cr, uid, [res_id])[0][1]
- return (model, res_id, url, name)
-
- def document_type(self, cr, uid, context=None):
- """
- Return the list of available model to push
- res.partner is a special case
- otherwise all model that inherit from mail.thread
- ['res.partner', 'project.issue']
- """
- mail_thread_obj = self.pool.get('mail.thread')
- doc_dict = mail_thread_obj.message_capable_models(cr, uid, context)
- doc_dict['res.partner'] = "Partner"
- return doc_dict.items()
-
- # Can be used where search record was used
- def list_document_get(self, cr, uid, model, name):
- """
- This function return the result of name_search on the object model
- @param model: the name of the model
- @param : the name of the document
- @return : the result of name_search a list of tuple
- [(id, 'name')]
- """
- return self.pool[model].name_search(cr, uid, name)
-
- def push_message(self, cr, uid, model, email, res_id=0):
- """
- @param email: email is a standard RFC2822 email message
- @param model: On which model the message is pushed
- @param thread_id: on which document the message is pushed, if thread_id = 0 a new document is created
- @return Dictionary which contain model , url and resource id.
- """
- mail_message = self.pool.get('mail.message')
- model_obj = self.pool[model]
- mail_thread_obj = self.pool.get('mail.thread')
- msg = mail_thread_obj.message_parse(cr, uid, email)
- message_id = msg.get('message_id')
- mail_ids = mail_message.search(cr, uid, [('message_id', '=', message_id), ('res_id', '=', res_id), ('model', '=', model)])
- if message_id and mail_ids:
- mail_record = mail_message.browse(cr, uid, mail_ids)[0]
- res_id = mail_record.res_id
- notify = _("Email already pushed")
- elif res_id == 0:
- if model == 'res.partner':
- notify = _('Use the Partner button to create a new partner')
- else:
- res_id = model_obj.message_process(cr, uid, model, email)
- notify = _("Mail successfully pushed, a new %s has been created.") % model
- else:
- email_from = msg.get('email_from')
- if not email_from:
- author_id = False
- else:
- authors = mail_thread_obj.message_find_partner_from_emails(cr, uid, [res_id], [email_from])
- author_id = authors and authors[0].get('partner_id') or False
-
- model_obj.message_post(cr, uid, [res_id],
- body=msg.get('body'),
- subject=msg.get('subject'),
- type='comment' if model == 'res.partner' else 'email',
- parent_id=msg.get('parent_id'),
- attachments=msg.get('attachments'),
- message_id=message_id,
- email_from=email_from,
- author_id=author_id)
- notify = _("Mail successfully pushed")
- url = self._make_url(cr, uid, res_id, model)
- return (model, res_id, url, notify)
-
- def contact_create(self, cr, uid, data, partner_id, context=None):
- """
- @param data : the data use to create the res.partner
- [('field_name', value)], field name is required
- @param partner_id : On which partner the address is attached
- if partner_id = 0 then create a new partner with the same name that the address
- @return : the partner_id sended or created, this allow the plugin to open the right partner page
- """
- partner_obj = self.pool.get('res.partner')
- dictcreate = dict(data)
- if partner_id:
- is_company = partner_obj.browse(cr, uid, partner_id, context=context).is_company
- if is_company:
- dictcreate['parent_id'] = partner_id
- partner_id = partner_obj.create(cr, uid, dictcreate)
- url = self._make_url(cr, uid, partner_id, 'res.partner')
- return ('res.partner', partner_id, url)
-
- # Specific to outlook rfc822 is not available so we split in arguments headerd,body,attachemnts
- def push_message_outlook(self, cr, uid, model, headers, res_id=0, body=False, body_html=False, attachments=False):
- # ----------------------------------------
- # solution 1
- # construct a fake rfc822 from the separated arguement
- #m = email.asdfsadf
- # use the push_message method
- #self.push_message(m)
- # ----------------------------------------
- # solution 2
- # use self.pushmessage only with header and body
- # add attachemnt yourself after
- mail_message = self.pool.get('mail.message')
- ir_attachment_obj = self.pool.get('ir.attachment')
- attach_ids = []
- msg = self.pool.get('mail.thread').message_parse(cr, uid, headers)
- message_id = msg.get('message_id')
- push_mail = self.push_message(cr, uid, model, headers, res_id)
- res_id = push_mail[1]
- model = push_mail[0]
- notify = push_mail[3]
- for name in attachments.keys():
- attachment_ids = ir_attachment_obj.search(cr, uid, [('res_model', '=', model), ('res_id', '=', res_id), ('datas_fname', '=', name)])
- if attachment_ids:
- attach_ids.append(attachment_ids[0])
- else:
- vals = {"res_model": model, "res_id": res_id, "name": name, "datas": attachments[name], "datas_fname": name}
- attach_ids.append(ir_attachment_obj.create(cr, uid, vals))
- mail_ids = mail_message.search(cr, uid, [('message_id', '=', message_id), ('res_id', '=', res_id), ('model', '=', model)])
- if mail_ids:
- mail_message.write(cr, uid, mail_ids[0], {'attachment_ids': [(6, 0, attach_ids)], 'body': body_html})
- url = self._make_url(cr, uid, res_id, model)
- return (model, res_id, url, notify)