[MIG] fetchmail_notify_error_to_sender: Migration to 10.0

pull/2286/head
mreficent 2017-07-17 12:43:39 +02:00 committed by Jasmin Solanki
parent 698f8fac2e
commit d040a6142f
6 changed files with 11 additions and 13 deletions

View File

@ -2,9 +2,9 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :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 If fetchmail is not able to correctly route an email, the email is
"silently" lost (you get an error message in server log). "silently" lost (you get an error message in server log).
@ -57,7 +57,7 @@ Contributors
------------ ------------
* Lorenzo Battistini <lorenzo.battistini@agilebg.com> * Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Miquel Raïch <miquel.raich@eficent.com> (migration to v9) * Miquel Raïch <miquel.raich@eficent.com> (migration to v9 and v10)
Maintainer Maintainer
---------- ----------

View File

@ -4,9 +4,9 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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', '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', 'category': 'Tools',
'author': "Agile Business Group,Eficent,Odoo Community Association (OCA)", 'author': "Agile Business Group,Eficent,Odoo Community Association (OCA)",
'website': 'https://github.com/OCA/server-tools', 'website': 'https://github.com/OCA/server-tools',

View File

@ -1,6 +1,5 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<openerp> <odoo noupdate="1">
<data noupdate="1">
<!--Email template --> <!--Email template -->
<record id="email_template_error_notice" model="mail.template"> <record id="email_template_error_notice" model="mail.template">
<field name="name">Fetchmail - error notice</field> <field name="name">Fetchmail - error notice</field>
@ -22,5 +21,4 @@
</div> </div>
]]></field> ]]></field>
</record> </record>
</data> </odoo>
</openerp>

View File

@ -3,7 +3,7 @@
# Copyright 2017 Eficent <http://www.eficent.com> # Copyright 2017 Eficent <http://www.eficent.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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): class FetchmailServer(models.Model):

View File

@ -3,7 +3,7 @@
# Copyright 2017 Eficent <http://www.eficent.com> # Copyright 2017 Eficent <http://www.eficent.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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): class MailThread(models.AbstractModel):

View File

@ -3,7 +3,7 @@
<record model="ir.ui.view" id="view_email_server_form"> <record model="ir.ui.view" id="view_email_server_form">
<field name="name">fetchmail.server.form</field> <field name="name">fetchmail.server.form</field>
<field name="model">fetchmail.server</field> <field name="model">fetchmail.server</field>
<field name="inherit_id" ref="fetchmail.view_email_server_form"></field> <field name="inherit_id" ref="fetchmail.view_email_server_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="active" position="after"> <field name="active" position="after">
<field name="error_notice_template_id"/> <field name="error_notice_template_id"/>