diff --git a/mail_inline_css/README.rst b/mail_inline_css/README.rst index b67fc9c2..3b362ebe 100644 --- a/mail_inline_css/README.rst +++ b/mail_inline_css/README.rst @@ -52,7 +52,7 @@ Just use any mail template as Odoo standard feature .. 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 + :target: https://runbot.odoo-community.org/runbot/205/11 Note: diff --git a/mail_inline_css/__manifest__.py b/mail_inline_css/__manifest__.py index a0c9d942..c4e87d31 100644 --- a/mail_inline_css/__manifest__.py +++ b/mail_inline_css/__manifest__.py @@ -1,11 +1,10 @@ -# coding: utf-8 -# © 2017 David BEAL @ Akretion +# Copyright 2017 David BEAL @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Mail Inline CSS', "summary": "Convert style tags in inline style in your mails", - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'author': 'Akretion, Odoo Community Association (OCA)', 'website': 'https://github.com/OCA/social', 'license': 'AGPL-3', diff --git a/mail_inline_css/i18n/mail_inline_css.pot b/mail_inline_css/i18n/mail_inline_css.pot deleted file mode 100644 index c7f5e2a4..00000000 --- a/mail_inline_css/i18n/mail_inline_css.pot +++ /dev/null @@ -1,20 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_inline_css -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.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_inline_css -#: model:ir.model,name:mail_inline_css.model_mail_template -msgid "Email Templates" -msgstr "" - diff --git a/mail_inline_css/models/mail.py b/mail_inline_css/models/mail.py index a4be0194..a941a939 100644 --- a/mail_inline_css/models/mail.py +++ b/mail_inline_css/models/mail.py @@ -1,5 +1,4 @@ -# coding: utf-8 -# © 2017 David BEAL @ Akretion +# Copyright 2017 David BEAL @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import logging @@ -17,7 +16,7 @@ class MailTemplate(models.Model): _inherit = 'mail.template' def generate_email(self, res_ids, fields=None): - res = super(MailTemplate, self).generate_email(res_ids, fields=fields) + res = super().generate_email(res_ids, fields=fields) if 'body_html' in res: res['body_html'] = transform(res['body_html']) return res diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..5cda04c0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +premailer +