[MIG] mail_attach_existing_attachment: Migration to 11.0

This commit is contained in:
ernesto 2018-04-16 17:16:07 -04:00 committed by Alvaro
parent aa117d392a
commit 432b2b1640
18 changed files with 75 additions and 38 deletions

View File

@ -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
======================

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import wizard

View File

@ -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',

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ""

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
from . import test_mail_attach_existing_attachment

View File

@ -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({

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import mail_compose_message

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of mail_attach_existing_attachment,