diff --git a/auto_resend_mail/__init__.py b/auto_resend_mail/__init__.py new file mode 100644 index 000000000..79691dc1a --- /dev/null +++ b/auto_resend_mail/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import models + + diff --git a/auto_resend_mail/__manifest__.py b/auto_resend_mail/__manifest__.py new file mode 100644 index 000000000..84270f7e3 --- /dev/null +++ b/auto_resend_mail/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Email - Auto Resend', + 'summary': """Automatically Resend The Failed Emails""", + 'version': '10.0.1.0', + 'description': """Automatically resend the failed Emails""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'category': 'Tools', + 'depends': ['base', 'mail', 'mrp'], + 'license': 'AGPL-3', + 'data': [ + 'views/auto_resend_cron.xml', + ], + 'images': ['static/description/banner.jpg'], + 'demo': [], + 'installable': True, + 'auto_install': False, + +} diff --git a/auto_resend_mail/models/__init__.py b/auto_resend_mail/models/__init__.py new file mode 100644 index 000000000..5797b173c --- /dev/null +++ b/auto_resend_mail/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import auto_resend + + + diff --git a/auto_resend_mail/models/auto_resend.py b/auto_resend_mail/models/auto_resend.py new file mode 100644 index 000000000..55f8e7c71 --- /dev/null +++ b/auto_resend_mail/models/auto_resend.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import models, api + + +class ResendMails(models.Model): + _inherit = 'mail.mail' + + @api.multi + def resend_failed_mails(self): + mail_failed_list = self.env['mail.mail'].search([('state', '=', 'exception')]) + for failed_mail in mail_failed_list: + failed_mail.state = 'outgoing' + diff --git a/auto_resend_mail/static/description/banner.jpg b/auto_resend_mail/static/description/banner.jpg new file mode 100644 index 000000000..1639fe1a2 Binary files /dev/null and b/auto_resend_mail/static/description/banner.jpg differ diff --git a/auto_resend_mail/static/description/cybro_logo.png b/auto_resend_mail/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/auto_resend_mail/static/description/cybro_logo.png differ diff --git a/auto_resend_mail/static/description/icon.png b/auto_resend_mail/static/description/icon.png new file mode 100644 index 000000000..ac0d22170 Binary files /dev/null and b/auto_resend_mail/static/description/icon.png differ diff --git a/auto_resend_mail/static/description/index.html b/auto_resend_mail/static/description/index.html new file mode 100644 index 000000000..ca0a68db3 --- /dev/null +++ b/auto_resend_mail/static/description/index.html @@ -0,0 +1,65 @@ +
+
+

Failed Emails - Auto Resend

+

Resend failed E-mails automatically

+

Cybrosys Technologies

+
+

No more worry about the failed E-mails, install Auto Resend to resend the failed E-mails + automatically.

+
+
+

Features:

+
    +
  •    Resending of failed Emails
  • +
  •    Can configure the resending time periods
  • +
  •    The whole mailbox will be checked once a day by default.
  • +
  •    If there are any failed emails, it will resend
  • +
  •    Automatic checking for resending the failed emails can be configured once + a day or once a week, or once an Hour etc.
  • +
+
+
+
+ +
+
+

How to set the resending time period?

+
+

By default, the whole Emails will be checked once a day

+

If there are any failed emails, then it will resend

+

To change the time period

+

Activate the developer mode, Then Settings -> Technical -> Automation -> Scheduled Action

+

Open the record named 'Auto Resend Emails'

+

Configure it here

+
+ +
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/auto_resend_mail/static/description/index.html~ b/auto_resend_mail/static/description/index.html~ new file mode 100644 index 000000000..7f747cbbb --- /dev/null +++ b/auto_resend_mail/static/description/index.html~ @@ -0,0 +1,82 @@ +
+
+

Birthday Notification By E-mail

+

This module will wish the employees on their birthday

+ +

Author : Cybrosys Techno Solutions , www.cybrosys.com

+
+

Features:

+
    +
  •    Adds a cron job to invoke email
  • +
  •    Adds an email template
  • +
+
+
+
+ +
+
+
+

Overview

+

+ HR departments need not worry to wish their employees for their Birthday. In this module we have included the feature to send an email Birthday notification to the employee. +

+
+
+
+ +
+
+

Employee Form

+
+

+ ☛ Give Date of Birth for employee.
+ ☛ Give work email.
+

+
+ +
+
+
+
+ +
+
+

Email Template

+
+

+ ☛ The cron job will invoke the email
+ ☛ Email template is very simple
+

+
+ +
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/auto_resend_mail/static/description/set_interval.png b/auto_resend_mail/static/description/set_interval.png new file mode 100644 index 000000000..c9dd0f388 Binary files /dev/null and b/auto_resend_mail/static/description/set_interval.png differ diff --git a/auto_resend_mail/views/auto_resend_cron.xml b/auto_resend_mail/views/auto_resend_cron.xml new file mode 100644 index 000000000..a4c6aee7f --- /dev/null +++ b/auto_resend_mail/views/auto_resend_cron.xml @@ -0,0 +1,15 @@ + + + + + Auto Resend Emails + 1 + days + -1 + + + + () + + +