From 1d32187bf94f35a5617ec1edeb3f50c63fd3a6a6 Mon Sep 17 00:00:00 2001
From: ernesto <ernesto.tejeda87@gmail.com>
Date: Mon, 16 Apr 2018 17:16:07 -0400
Subject: [PATCH] [MIG] mail_attach_existing_attachment: Migration to 11.0

---
 mail_attach_existing_attachment/README.rst    |  2 +-
 mail_attach_existing_attachment/__init__.py   |  1 -
 .../__manifest__.py                           |  3 +-
 mail_attach_existing_attachment/i18n/ca.po    |  7 +++--
 mail_attach_existing_attachment/i18n/de.po    |  4 +--
 mail_attach_existing_attachment/i18n/es.po    |  4 +--
 mail_attach_existing_attachment/i18n/es_CO.po |  7 +++--
 mail_attach_existing_attachment/i18n/fr.po    |  4 +--
 mail_attach_existing_attachment/i18n/hr.po    | 10 ++++---
 mail_attach_existing_attachment/i18n/it.po    |  4 +--
 .../i18n/mail_attach_existing_attachment.pot  | 30 +++++++++++++++++++
 mail_attach_existing_attachment/i18n/pt_BR.po |  7 +++--
 mail_attach_existing_attachment/i18n/sl.po    | 10 ++++---
 mail_attach_existing_attachment/i18n/zh_CN.po |  7 +++--
 .../tests/__init__.py                         |  1 -
 .../test_mail_attach_existing_attachment.py   | 10 +++++--
 .../wizard/__init__.py                        |  1 -
 .../wizard/mail_compose_message.py            |  1 -
 18 files changed, 75 insertions(+), 38 deletions(-)
 create mode 100644 mail_attach_existing_attachment/i18n/mail_attach_existing_attachment.pot

diff --git a/mail_attach_existing_attachment/README.rst b/mail_attach_existing_attachment/README.rst
index a3eea1475..b51893df8 100644
--- a/mail_attach_existing_attachment/README.rst
+++ b/mail_attach_existing_attachment/README.rst
@@ -31,7 +31,7 @@ To configure this module, you need to:
 
 .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
    :alt: Try me on Runbot
-   :target: https://runbot.odoo-community.org/runbot/205/10.0
+   :target: https://runbot.odoo-community.org/runbot/205/11.0
 
 Known issues / Roadmap
 ======================
diff --git a/mail_attach_existing_attachment/__init__.py b/mail_attach_existing_attachment/__init__.py
index 02baef47b..40272379f 100644
--- a/mail_attach_existing_attachment/__init__.py
+++ b/mail_attach_existing_attachment/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
 from . import wizard
diff --git a/mail_attach_existing_attachment/__manifest__.py b/mail_attach_existing_attachment/__manifest__.py
index fbc2b424a..901835c2d 100644
--- a/mail_attach_existing_attachment/__manifest__.py
+++ b/mail_attach_existing_attachment/__manifest__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 ##############################################################################
 #
 #     This file is part of mail_attach_existing_attachment,
@@ -31,7 +30,7 @@
               "Odoo Community Association (OCA)",
     'website': "http://acsone.eu",
     'category': 'Social Network',
-    'version': '10.0.1.0.0',
+    'version': '11.0.1.0.0',
     'license': 'AGPL-3',
     'depends': [
         'mail',
diff --git a/mail_attach_existing_attachment/i18n/ca.po b/mail_attach_existing_attachment/i18n/ca.po
index f5334acad..78413f428 100644
--- a/mail_attach_existing_attachment/i18n/ca.po
+++ b/mail_attach_existing_attachment/i18n/ca.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 msgid ""
 msgstr ""
@@ -10,11 +10,12 @@ msgstr ""
 "POT-Creation-Date: 2016-06-13 02:44+0000\n"
 "PO-Revision-Date: 2016-06-12 23:57+0000\n"
 "Last-Translator: <>\n"
-"Language-Team: Catalan (http://www.transifex.com/oca/OCA-social-9-0/language/ca/)\n"
+"Language-Team: Catalan (http://www.transifex.com/oca/OCA-social-9-0/language/"
+"ca/)\n"
+"Language: ca\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: ca\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/de.po b/mail_attach_existing_attachment/i18n/de.po
index 022273015..2c6e26323 100644
--- a/mail_attach_existing_attachment/i18n/de.po
+++ b/mail_attach_existing_attachment/i18n/de.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # OCA Transbot <transbot@odoo-community.org>, 2016
 # Niki Waibel <niki.waibel@gmail.com>, 2016
@@ -13,10 +13,10 @@ msgstr ""
 "PO-Revision-Date: 2016-11-29 14:24+0000\n"
 "Last-Translator: Niki Waibel <niki.waibel@gmail.com>, 2016\n"
 "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
+"Language: de\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: de\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/es.po b/mail_attach_existing_attachment/i18n/es.po
index 015f08a39..95e6980ef 100644
--- a/mail_attach_existing_attachment/i18n/es.po
+++ b/mail_attach_existing_attachment/i18n/es.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # OCA Transbot <transbot@odoo-community.org>, 2017
 # Pedro M. Baeza <pedro.baeza@gmail.com>, 2017
@@ -13,10 +13,10 @@ msgstr ""
 "PO-Revision-Date: 2017-12-01 02:19+0000\n"
 "Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>, 2017\n"
 "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
+"Language: es\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: es\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/es_CO.po b/mail_attach_existing_attachment/i18n/es_CO.po
index 0d62d5fcb..25924b96e 100644
--- a/mail_attach_existing_attachment/i18n/es_CO.po
+++ b/mail_attach_existing_attachment/i18n/es_CO.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 msgid ""
 msgstr ""
@@ -10,11 +10,12 @@ msgstr ""
 "POT-Creation-Date: 2016-06-13 02:44+0000\n"
 "PO-Revision-Date: 2016-06-12 23:57+0000\n"
 "Last-Translator: <>\n"
-"Language-Team: Spanish (Colombia) (http://www.transifex.com/oca/OCA-social-9-0/language/es_CO/)\n"
+"Language-Team: Spanish (Colombia) (http://www.transifex.com/oca/OCA-"
+"social-9-0/language/es_CO/)\n"
+"Language: es_CO\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: es_CO\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/fr.po b/mail_attach_existing_attachment/i18n/fr.po
index 0220407d3..a420ef1bc 100644
--- a/mail_attach_existing_attachment/i18n/fr.po
+++ b/mail_attach_existing_attachment/i18n/fr.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # OCA Transbot <transbot@odoo-community.org>, 2016
 # Quentin THEURET <odoo@kerpeo.com>, 2017
@@ -13,10 +13,10 @@ msgstr ""
 "PO-Revision-Date: 2017-07-22 09:45+0000\n"
 "Last-Translator: Quentin THEURET <odoo@kerpeo.com>, 2017\n"
 "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
+"Language: fr\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: fr\n"
 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/hr.po b/mail_attach_existing_attachment/i18n/hr.po
index 49b0ed73c..5ceb5fb39 100644
--- a/mail_attach_existing_attachment/i18n/hr.po
+++ b/mail_attach_existing_attachment/i18n/hr.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # Bole <bole@dajmi5.com>, 2016
 msgid ""
@@ -11,12 +11,14 @@ msgstr ""
 "POT-Creation-Date: 2016-06-13 02:44+0000\n"
 "PO-Revision-Date: 2016-06-14 11:29+0000\n"
 "Last-Translator: Bole <bole@dajmi5.com>\n"
-"Language-Team: Croatian (http://www.transifex.com/oca/OCA-social-9-0/language/hr/)\n"
+"Language-Team: Croatian (http://www.transifex.com/oca/OCA-social-9-0/"
+"language/hr/)\n"
+"Language: hr\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: hr\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
 
 #. module: mail_attach_existing_attachment
 #: model:ir.model.fields,field_description:mail_attach_existing_attachment.field_mail_compose_message_object_attachment_ids
diff --git a/mail_attach_existing_attachment/i18n/it.po b/mail_attach_existing_attachment/i18n/it.po
index ed7ee33a6..6930c7db5 100644
--- a/mail_attach_existing_attachment/i18n/it.po
+++ b/mail_attach_existing_attachment/i18n/it.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # OCA Transbot <transbot@odoo-community.org>, 2016
 # Marius Marolla <mariusmarolla@gmail.com>, 2017
@@ -13,10 +13,10 @@ msgstr ""
 "PO-Revision-Date: 2017-05-17 01:02+0000\n"
 "Last-Translator: Marius Marolla <mariusmarolla@gmail.com>, 2017\n"
 "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
+"Language: it\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: it\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/mail_attach_existing_attachment.pot b/mail_attach_existing_attachment/i18n/mail_attach_existing_attachment.pot
new file mode 100644
index 000000000..266b4463a
--- /dev/null
+++ b/mail_attach_existing_attachment/i18n/mail_attach_existing_attachment.pot
@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+#	* mail_attach_existing_attachment
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 11.0\n"
+"Report-Msgid-Bugs-To: \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: mail_attach_existing_attachment
+#: model:ir.model.fields,field_description:mail_attach_existing_attachment.field_mail_compose_message_object_attachment_ids
+msgid "Attachments"
+msgstr ""
+
+#. module: mail_attach_existing_attachment
+#: model:ir.model.fields,field_description:mail_attach_existing_attachment.field_mail_compose_message_can_attach_attachment
+msgid "Can Attach Attachment"
+msgstr ""
+
+#. module: mail_attach_existing_attachment
+#: model:ir.model,name:mail_attach_existing_attachment.model_mail_compose_message
+msgid "Email composition wizard"
+msgstr ""
+
diff --git a/mail_attach_existing_attachment/i18n/pt_BR.po b/mail_attach_existing_attachment/i18n/pt_BR.po
index df34c99ef..3205cc480 100644
--- a/mail_attach_existing_attachment/i18n/pt_BR.po
+++ b/mail_attach_existing_attachment/i18n/pt_BR.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # Armando Vulcano Junior <vulcano@uol.com.br>, 2015
 msgid ""
@@ -11,11 +11,12 @@ msgstr ""
 "POT-Creation-Date: 2016-06-13 02:44+0000\n"
 "PO-Revision-Date: 2016-06-13 03:11+0000\n"
 "Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
-"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-social-9-0/language/pt_BR/)\n"
+"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-"
+"social-9-0/language/pt_BR/)\n"
+"Language: pt_BR\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: pt_BR\n"
 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/i18n/sl.po b/mail_attach_existing_attachment/i18n/sl.po
index 2899f71dc..76343af02 100644
--- a/mail_attach_existing_attachment/i18n/sl.po
+++ b/mail_attach_existing_attachment/i18n/sl.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # Matjaž Mozetič <m.mozetic@matmoz.si>, 2015
 msgid ""
@@ -11,12 +11,14 @@ msgstr ""
 "POT-Creation-Date: 2016-06-13 02:44+0000\n"
 "PO-Revision-Date: 2016-06-13 03:11+0000\n"
 "Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
-"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-social-9-0/language/sl/)\n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-social-9-0/"
+"language/sl/)\n"
+"Language: sl\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: sl\n"
-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
+"%100==4 ? 2 : 3);\n"
 
 #. module: mail_attach_existing_attachment
 #: model:ir.model.fields,field_description:mail_attach_existing_attachment.field_mail_compose_message_object_attachment_ids
diff --git a/mail_attach_existing_attachment/i18n/zh_CN.po b/mail_attach_existing_attachment/i18n/zh_CN.po
index 49469d788..2fdf0f0a5 100644
--- a/mail_attach_existing_attachment/i18n/zh_CN.po
+++ b/mail_attach_existing_attachment/i18n/zh_CN.po
@@ -1,7 +1,7 @@
 # Translation of Odoo Server.
 # This file contains the translation of the following modules:
 # * mail_attach_existing_attachment
-# 
+#
 # Translators:
 # Jeffery Chenn <jeffery9@gmail.com>, 2016
 msgid ""
@@ -11,11 +11,12 @@ msgstr ""
 "POT-Creation-Date: 2016-09-02 00:46+0000\n"
 "PO-Revision-Date: 2016-09-04 05:54+0000\n"
 "Last-Translator: Jeffery Chenn <jeffery9@gmail.com>\n"
-"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-social-9-0/language/zh_CN/)\n"
+"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-social-9-0/"
+"language/zh_CN/)\n"
+"Language: zh_CN\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: \n"
-"Language: zh_CN\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
 
 #. module: mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/tests/__init__.py b/mail_attach_existing_attachment/tests/__init__.py
index 26c2cf040..fc1e8e4e2 100644
--- a/mail_attach_existing_attachment/tests/__init__.py
+++ b/mail_attach_existing_attachment/tests/__init__.py
@@ -1,3 +1,2 @@
-# -*- coding: utf-8 -*-
 
 from . import test_mail_attach_existing_attachment
diff --git a/mail_attach_existing_attachment/tests/test_mail_attach_existing_attachment.py b/mail_attach_existing_attachment/tests/test_mail_attach_existing_attachment.py
index af1aaaec9..a6730e773 100644
--- a/mail_attach_existing_attachment/tests/test_mail_attach_existing_attachment.py
+++ b/mail_attach_existing_attachment/tests/test_mail_attach_existing_attachment.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 ##############################################################################
 #
 #     This file is part of mail_attach_existing_attachment,
@@ -23,7 +22,7 @@
 #
 ##############################################################################
 
-from openerp.tests import common
+from odoo.tests import common
 
 
 class TestAttachExistingAttachment(common.TransactionCase):
@@ -31,7 +30,12 @@ class TestAttachExistingAttachment(common.TransactionCase):
     def setUp(self):
         super(TestAttachExistingAttachment, self).setUp()
         self.partner_obj = self.env['res.partner']
-        self.partner_01 = self.env.ref('base.res_partner_1')
+        self.partner_01 = self.env['res.partner'].create({
+            'name': 'Partner 1',
+            'email': 'partner1@example.org',
+            'is_company': True,
+            'parent_id': False,
+        })
 
     def test_send_email_attachment(self):
         attach1 = self.env['ir.attachment'].create({
diff --git a/mail_attach_existing_attachment/wizard/__init__.py b/mail_attach_existing_attachment/wizard/__init__.py
index 12ddb2dc7..b528d997d 100644
--- a/mail_attach_existing_attachment/wizard/__init__.py
+++ b/mail_attach_existing_attachment/wizard/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
 from . import mail_compose_message
diff --git a/mail_attach_existing_attachment/wizard/mail_compose_message.py b/mail_attach_existing_attachment/wizard/mail_compose_message.py
index a86e4a802..073c7da0e 100644
--- a/mail_attach_existing_attachment/wizard/mail_compose_message.py
+++ b/mail_attach_existing_attachment/wizard/mail_compose_message.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 ##############################################################################
 #
 #     This file is part of mail_attach_existing_attachment,