From 0b3f66231c99dac2814c6109a718ca0aa3557c96 Mon Sep 17 00:00:00 2001 From: mreficent Date: Mon, 17 Jul 2017 12:43:39 +0200 Subject: [PATCH] [MIG] fetchmail_notify_error_to_sender: Migration to 10.0 --- fetchmail_notify_error_to_sender/README.rst | 8 ++++---- .../{__openerp__.py => __manifest__.py} | 4 ++-- .../data/email_template_data.xml | 6 ++---- fetchmail_notify_error_to_sender/models/fetchmail.py | 2 +- fetchmail_notify_error_to_sender/models/mail_thread.py | 2 +- fetchmail_notify_error_to_sender/views/fetchmail_view.xml | 2 +- 6 files changed, 11 insertions(+), 13 deletions(-) rename fetchmail_notify_error_to_sender/{__openerp__.py => __manifest__.py} (89%) diff --git a/fetchmail_notify_error_to_sender/README.rst b/fetchmail_notify_error_to_sender/README.rst index 813be264e..2fa99caef 100644 --- a/fetchmail_notify_error_to_sender/README.rst +++ b/fetchmail_notify_error_to_sender/README.rst @@ -2,9 +2,9 @@ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -=============================== -Send notice on fetchmail errors -=============================== +================================ +Fetchmail Notify Error to Sender +================================ If fetchmail is not able to correctly route an email, the email is "silently" lost (you get an error message in server log). @@ -57,7 +57,7 @@ Contributors ------------ * Lorenzo Battistini -* Miquel Raïch (migration to v9) +* Miquel Raïch (migration to v9 and v10) Maintainer ---------- diff --git a/fetchmail_notify_error_to_sender/__openerp__.py b/fetchmail_notify_error_to_sender/__manifest__.py similarity index 89% rename from fetchmail_notify_error_to_sender/__openerp__.py rename to fetchmail_notify_error_to_sender/__manifest__.py index 97d87cbd0..357519a65 100644 --- a/fetchmail_notify_error_to_sender/__openerp__.py +++ b/fetchmail_notify_error_to_sender/__manifest__.py @@ -4,9 +4,9 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Send notice on fetchmail errors', + 'name': 'Fetchmail Notify Error to Sender', 'summary': 'If fetching mails gives error, send an email to sender', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Tools', 'author': "Agile Business Group,Eficent,Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/server-tools', diff --git a/fetchmail_notify_error_to_sender/data/email_template_data.xml b/fetchmail_notify_error_to_sender/data/email_template_data.xml index 3bfbb212d..6e1371509 100644 --- a/fetchmail_notify_error_to_sender/data/email_template_data.xml +++ b/fetchmail_notify_error_to_sender/data/email_template_data.xml @@ -1,6 +1,5 @@ - - + Fetchmail - error notice @@ -22,5 +21,4 @@ ]]> - - + diff --git a/fetchmail_notify_error_to_sender/models/fetchmail.py b/fetchmail_notify_error_to_sender/models/fetchmail.py index e7be9e163..3192cba51 100644 --- a/fetchmail_notify_error_to_sender/models/fetchmail.py +++ b/fetchmail_notify_error_to_sender/models/fetchmail.py @@ -3,7 +3,7 @@ # Copyright 2017 Eficent # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import fields, models +from odoo import fields, models class FetchmailServer(models.Model): diff --git a/fetchmail_notify_error_to_sender/models/mail_thread.py b/fetchmail_notify_error_to_sender/models/mail_thread.py index 6b3c0c7ca..bbe78b70d 100644 --- a/fetchmail_notify_error_to_sender/models/mail_thread.py +++ b/fetchmail_notify_error_to_sender/models/mail_thread.py @@ -3,7 +3,7 @@ # Copyright 2017 Eficent # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, models +from odoo import api, models class MailThread(models.AbstractModel): diff --git a/fetchmail_notify_error_to_sender/views/fetchmail_view.xml b/fetchmail_notify_error_to_sender/views/fetchmail_view.xml index b3fbcd8b1..39b2023c6 100644 --- a/fetchmail_notify_error_to_sender/views/fetchmail_view.xml +++ b/fetchmail_notify_error_to_sender/views/fetchmail_view.xml @@ -3,7 +3,7 @@ fetchmail.server.form fetchmail.server - +