Browse Source

[MIG] fetchmail_notify_error_to_sender: Migration to 10.0

pull/1485/head
mreficent 8 years ago
parent
commit
d87bda917a
  1. 8
      fetchmail_notify_error_to_sender/README.rst
  2. 4
      fetchmail_notify_error_to_sender/__manifest__.py
  3. 6
      fetchmail_notify_error_to_sender/data/email_template_data.xml
  4. 2
      fetchmail_notify_error_to_sender/models/fetchmail.py
  5. 2
      fetchmail_notify_error_to_sender/models/mail_thread.py
  6. 2
      fetchmail_notify_error_to_sender/views/fetchmail_view.xml

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

4
fetchmail_notify_error_to_sender/__openerp__.py → 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',

6
fetchmail_notify_error_to_sender/data/email_template_data.xml

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

2
fetchmail_notify_error_to_sender/models/fetchmail.py

@ -3,7 +3,7 @@
# Copyright 2017 Eficent <http://www.eficent.com>
# 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):

2
fetchmail_notify_error_to_sender/models/mail_thread.py

@ -3,7 +3,7 @@
# Copyright 2017 Eficent <http://www.eficent.com>
# 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):

2
fetchmail_notify_error_to_sender/views/fetchmail_view.xml

@ -3,7 +3,7 @@
<record model="ir.ui.view" id="view_email_server_form">
<field name="name">fetchmail.server.form</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="active" position="after">
<field name="error_notice_template_id"/>

Loading…
Cancel
Save