From 8042afd6a9e0af4e63f71be77f2337897129077f Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Tue, 11 Oct 2016 19:25:32 +0200 Subject: [PATCH] [MIG] email_template_qweb: Migrated to 10.0 --- email_template_qweb/README.rst | 9 +++++---- email_template_qweb/__manifest__.py | 4 ++-- email_template_qweb/models/mail_template.py | 2 +- email_template_qweb/tests/test_mail_template_qweb.py | 2 +- email_template_qweb/views/mail_template.xml | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/email_template_qweb/README.rst b/email_template_qweb/README.rst index a7351572..7e99df82 100644 --- a/email_template_qweb/README.rst +++ b/email_template_qweb/README.rst @@ -8,7 +8,8 @@ QWeb for email templates This module was written to allow you to write email templates in QWeb instead of jinja2. The advantage here is that with QWeb, you can make use of inheritance and the ``call`` statement, which allows you to reuse designs and -snippets in multiple templates, making your development process simpler. +snippets in multiple templates, making your development process simpler. +Furthermore, QWeb views are easier to edit with the integrated ACE editor. Usage ===== @@ -23,7 +24,7 @@ To use 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/149/8.0 + :target: https://runbot.odoo-community.org/runbot/205/10.0 Demo data contains an example on how to separate corporate identity from a template's content. @@ -35,10 +36,10 @@ For further information, please visit: Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback -`here `_. +`here `_. Credits ======= diff --git a/email_template_qweb/__manifest__.py b/email_template_qweb/__manifest__.py index 240eb0ff..cdc8caa4 100644 --- a/email_template_qweb/__manifest__.py +++ b/email_template_qweb/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "QWeb for email templates", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "author": "Therp BV,Odoo Community Association (OCA)", "license": "AGPL-3", "category": "Marketing", @@ -18,5 +18,5 @@ "data": [ "views/mail_template.xml", ], - 'installable': False, + 'installable': True, } diff --git a/email_template_qweb/models/mail_template.py b/email_template_qweb/models/mail_template.py index a8865a70..ecade048 100644 --- a/email_template_qweb/models/mail_template.py +++ b/email_template_qweb/models/mail_template.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # © 2016 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, tools, models +from odoo import api, fields, tools, models class MailTemplate(models.Model): diff --git a/email_template_qweb/tests/test_mail_template_qweb.py b/email_template_qweb/tests/test_mail_template_qweb.py index c82864d8..024a81d4 100644 --- a/email_template_qweb/tests/test_mail_template_qweb.py +++ b/email_template_qweb/tests/test_mail_template_qweb.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # © 2016 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestMailTemplateQweb(TransactionCase): diff --git a/email_template_qweb/views/mail_template.xml b/email_template_qweb/views/mail_template.xml index f2f5868b..6255ddf5 100644 --- a/email_template_qweb/views/mail_template.xml +++ b/email_template_qweb/views/mail_template.xml @@ -10,7 +10,7 @@ - +