diff --git a/cron_failure_notification/README.rst b/cron_failure_notification/README.rst new file mode 100644 index 000000000..0ff4dc27b --- /dev/null +++ b/cron_failure_notification/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Cron Failure Notification +========================= +* Cron Failure Notification module for Odoo 16. + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (AGPL V3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Company +------- +`Cybrosys Techno Solutions `__ + +Credits +------- + Developer : Mohammed Dilshad Tk + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/cron_failure_notification/__init__.py b/cron_failure_notification/__init__.py new file mode 100644 index 000000000..807db7797 --- /dev/null +++ b/cron_failure_notification/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: MOHAMMED DILSHAD TK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models diff --git a/cron_failure_notification/__manifest__.py b/cron_failure_notification/__manifest__.py new file mode 100644 index 000000000..c879b5972 --- /dev/null +++ b/cron_failure_notification/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: MOHAMMED DILSHAD TK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': "Cron Failure Notification", + 'version': '16.0.1.0.0', + 'category': 'Discuss', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'summary': 'Cron Failure Notification for odoo 16', + 'description': """This module helps to send notification on scheduled + actions failures""", + 'depends': ['base', 'mail'], + 'images': ['static/description/banner.png'], + 'data': [ + 'security/ir.model.access.csv', + 'report/ir_cron_failure_templates.xml', + 'report/ir_cron_reports.xml', + 'data/failure_mail_data.xml', + 'data/mail_template_data.xml', + 'views/ir_cron_views.xml', + 'views/failure_history_views.xml', + ], + 'installable': True, + 'auto_install': False, + 'license': 'AGPL-3', + 'application': False, +} diff --git a/cron_failure_notification/data/failure_mail_data.xml b/cron_failure_notification/data/failure_mail_data.xml new file mode 100644 index 000000000..f08607efa --- /dev/null +++ b/cron_failure_notification/data/failure_mail_data.xml @@ -0,0 +1,16 @@ + + + + + + Mail: Cron Error Notification + + code + model.mail_send_cron() + + 1 + days + -1 + + + \ No newline at end of file diff --git a/cron_failure_notification/data/mail_template_data.xml b/cron_failure_notification/data/mail_template_data.xml new file mode 100644 index 000000000..a7bd2b1a2 --- /dev/null +++ b/cron_failure_notification/data/mail_template_data.xml @@ -0,0 +1,19 @@ + + + + + + Mail: Cron Action Error + + {{ object.name }} Cron Failed + {{ ctx[ 'admin_mail' ] }} + + +

Dear Admin,

+

Here is attaching failures from scheduled cron jobs on our + server, so please quickly take an action for this. +

Thank You.

+
+
+
+
\ No newline at end of file diff --git a/cron_failure_notification/doc/RELEASE_NOTES.md b/cron_failure_notification/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..11314177f --- /dev/null +++ b/cron_failure_notification/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 01.06.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Cron Failure Notification \ No newline at end of file diff --git a/cron_failure_notification/models/__init__.py b/cron_failure_notification/models/__init__.py new file mode 100644 index 000000000..3f719e9f2 --- /dev/null +++ b/cron_failure_notification/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: MOHAMMED DILSHAD TK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import failure_history +from . import ir_cron diff --git a/cron_failure_notification/models/failure_history.py b/cron_failure_notification/models/failure_history.py new file mode 100644 index 000000000..fe65bd300 --- /dev/null +++ b/cron_failure_notification/models/failure_history.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: MOHAMMED DILSHAD TK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class FailureHistory(models.Model): + """Creates failure history""" + _name = 'failure.history' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _description = 'Failure History' + + name = fields.Char(string='Name', required=True, help="Failure Name") + error = fields.Char(string='Error Details', help="Error details") diff --git a/cron_failure_notification/models/ir_cron.py b/cron_failure_notification/models/ir_cron.py new file mode 100644 index 000000000..8ee9930a5 --- /dev/null +++ b/cron_failure_notification/models/ir_cron.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# ############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: MOHAMMED DILSHAD TK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +import datetime +import logging +import odoo +import time +from odoo import api, models +from odoo.fields import Datetime, _logger + + +class IrCron(models.Model): + """ Inherits ir cron for add a feature that sends mail to admin + each day, if any cron failed """ + _name = 'ir.cron' + _inherit = ['ir.cron', 'mail.thread'] + + @api.model + def _callback(self, cron_name, server_action_id, job_id): + """ Run the method associated to a given job. It takes care of logging + and exception handling. Note that the user running the server action + is the user calling this method. """ + try: + if self.pool != self.pool.check_signaling(): + # the registry has changed, reload self in the new registry + self.env.reset() + log_depth = (None if _logger.isEnabledFor(logging.DEBUG) else 1) + odoo.netsvc.log(_logger, logging.DEBUG, 'cron.object.execute', + (self._cr.dbname, self._uid, '*', cron_name, + server_action_id), depth=log_depth) + start_time = False + _logger.info('Starting job `%s`.', cron_name) + if _logger.isEnabledFor(logging.DEBUG): + start_time = time.time() + self.env['ir.actions.server'].browse(server_action_id).run() + _logger.info('Job `%s` done.', cron_name) + if start_time and _logger.isEnabledFor(logging.DEBUG): + end_time = time.time() + _logger.debug('%.3fs (cron %s, server action %d with uid %d)', + end_time - start_time, cron_name, + server_action_id, self.env.uid) + self.pool.signal_changes() + except Exception as exception: + self.pool.reset_changes() + _logger.exception( + "Call from cron %s for server action #%s failed in Job #%s", + cron_name, server_action_id, job_id) + if exception: + self.env['failure.history'].create({ + 'name': cron_name, + 'error': str(exception), + }) + + def mail_send_cron(self): + """ If any cron's failed a notification email will send to admin """ + start_of_day = Datetime.today() + end_of_day = datetime.datetime.combine(start_of_day, datetime.time.max) + failure = self.env['failure.history'].search( + [('create_date', '>', start_of_day), + ('create_date', '<', end_of_day)]) + if failure: + admin_mail = self.env['res.groups'].search( + [('category_id', '=', 'Administration'), + ('name', '=', 'Access Rights')]).users.login + email_values = {'admin_mail': admin_mail} + mail_template = self.env.ref( + 'cron_failure_notification.mail_template_cron_error') + mail_template.with_context(email_values).send_mail(self.id, + force_send=True) diff --git a/cron_failure_notification/report/ir_cron_failure_templates.xml b/cron_failure_notification/report/ir_cron_failure_templates.xml new file mode 100644 index 000000000..3b705d891 --- /dev/null +++ b/cron_failure_notification/report/ir_cron_failure_templates.xml @@ -0,0 +1,57 @@ + + + + + + \ No newline at end of file diff --git a/cron_failure_notification/report/ir_cron_reports.xml b/cron_failure_notification/report/ir_cron_reports.xml new file mode 100644 index 000000000..1023c7754 --- /dev/null +++ b/cron_failure_notification/report/ir_cron_reports.xml @@ -0,0 +1,13 @@ + + + + + Cron failure report + ir.cron + qweb-pdf + cron_failure_notification.report_logs_details + cron_failure_notification.report_logs_details + + report + + \ No newline at end of file diff --git a/cron_failure_notification/security/ir.model.access.csv b/cron_failure_notification/security/ir.model.access.csv new file mode 100644 index 000000000..fad45476c --- /dev/null +++ b/cron_failure_notification/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_failure_history,failure.history,model_failure_history,base.group_user,1,1,1,1 diff --git a/cron_failure_notification/static/description/assets/icons/check.png b/cron_failure_notification/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/check.png differ diff --git a/cron_failure_notification/static/description/assets/icons/chevron.png b/cron_failure_notification/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/chevron.png differ diff --git a/cron_failure_notification/static/description/assets/icons/cogs.png b/cron_failure_notification/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/cogs.png differ diff --git a/cron_failure_notification/static/description/assets/icons/consultation.png b/cron_failure_notification/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/consultation.png differ diff --git a/cron_failure_notification/static/description/assets/icons/ecom-black.png b/cron_failure_notification/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/ecom-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/education-black.png b/cron_failure_notification/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/education-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/hotel-black.png b/cron_failure_notification/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/hotel-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/license.png b/cron_failure_notification/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/license.png differ diff --git a/cron_failure_notification/static/description/assets/icons/lifebuoy.png b/cron_failure_notification/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/lifebuoy.png differ diff --git a/cron_failure_notification/static/description/assets/icons/logo.png b/cron_failure_notification/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/logo.png differ diff --git a/cron_failure_notification/static/description/assets/icons/manufacturing-black.png b/cron_failure_notification/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/manufacturing-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/pos-black.png b/cron_failure_notification/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/pos-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/puzzle.png b/cron_failure_notification/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/puzzle.png differ diff --git a/cron_failure_notification/static/description/assets/icons/restaurant-black.png b/cron_failure_notification/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/restaurant-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/service-black.png b/cron_failure_notification/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/service-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/trading-black.png b/cron_failure_notification/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/trading-black.png differ diff --git a/cron_failure_notification/static/description/assets/icons/training.png b/cron_failure_notification/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/training.png differ diff --git a/cron_failure_notification/static/description/assets/icons/update.png b/cron_failure_notification/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/update.png differ diff --git a/cron_failure_notification/static/description/assets/icons/user.png b/cron_failure_notification/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/user.png differ diff --git a/cron_failure_notification/static/description/assets/icons/wrench.png b/cron_failure_notification/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/wrench.png differ diff --git a/cron_failure_notification/static/description/assets/misc/categories.png b/cron_failure_notification/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/categories.png differ diff --git a/cron_failure_notification/static/description/assets/misc/check-box.png b/cron_failure_notification/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/check-box.png differ diff --git a/cron_failure_notification/static/description/assets/misc/compass.png b/cron_failure_notification/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/compass.png differ diff --git a/cron_failure_notification/static/description/assets/misc/corporate.png b/cron_failure_notification/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/corporate.png differ diff --git a/cron_failure_notification/static/description/assets/misc/customer-support.png b/cron_failure_notification/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/customer-support.png differ diff --git a/cron_failure_notification/static/description/assets/misc/cybrosys-logo.png b/cron_failure_notification/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/cybrosys-logo.png differ diff --git a/cron_failure_notification/static/description/assets/misc/features.png b/cron_failure_notification/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/features.png differ diff --git a/cron_failure_notification/static/description/assets/misc/logo.png b/cron_failure_notification/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/logo.png differ diff --git a/cron_failure_notification/static/description/assets/misc/pictures.png b/cron_failure_notification/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/pictures.png differ diff --git a/cron_failure_notification/static/description/assets/misc/pie-chart.png b/cron_failure_notification/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/pie-chart.png differ diff --git a/cron_failure_notification/static/description/assets/misc/right-arrow.png b/cron_failure_notification/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/right-arrow.png differ diff --git a/cron_failure_notification/static/description/assets/misc/star.png b/cron_failure_notification/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/star.png differ diff --git a/cron_failure_notification/static/description/assets/misc/support.png b/cron_failure_notification/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/support.png differ diff --git a/cron_failure_notification/static/description/assets/misc/whatsapp.png b/cron_failure_notification/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/whatsapp.png differ diff --git a/cron_failure_notification/static/description/assets/modules/l1.png b/cron_failure_notification/static/description/assets/modules/l1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/cron_failure_notification/static/description/assets/modules/l1.png differ diff --git a/cron_failure_notification/static/description/assets/modules/l2.png b/cron_failure_notification/static/description/assets/modules/l2.png new file mode 100644 index 000000000..a3194264c Binary files /dev/null and b/cron_failure_notification/static/description/assets/modules/l2.png differ diff --git a/cron_failure_notification/static/description/assets/modules/l3.png b/cron_failure_notification/static/description/assets/modules/l3.png new file mode 100644 index 000000000..e894393ef Binary files /dev/null and b/cron_failure_notification/static/description/assets/modules/l3.png differ diff --git a/cron_failure_notification/static/description/assets/modules/l4.png b/cron_failure_notification/static/description/assets/modules/l4.png new file mode 100644 index 000000000..f3c986fc1 Binary files /dev/null and b/cron_failure_notification/static/description/assets/modules/l4.png differ diff --git a/cron_failure_notification/static/description/assets/modules/l5.png b/cron_failure_notification/static/description/assets/modules/l5.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/cron_failure_notification/static/description/assets/modules/l5.png differ diff --git a/cron_failure_notification/static/description/assets/modules/l6.png b/cron_failure_notification/static/description/assets/modules/l6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/cron_failure_notification/static/description/assets/modules/l6.png differ diff --git a/cron_failure_notification/static/description/assets/screenshots/c1.png b/cron_failure_notification/static/description/assets/screenshots/c1.png new file mode 100644 index 000000000..0a3a01445 Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/c1.png differ diff --git a/cron_failure_notification/static/description/assets/screenshots/c2.png b/cron_failure_notification/static/description/assets/screenshots/c2.png new file mode 100644 index 000000000..0b966cb19 Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/c2.png differ diff --git a/cron_failure_notification/static/description/assets/screenshots/c3.png b/cron_failure_notification/static/description/assets/screenshots/c3.png new file mode 100644 index 000000000..41bfa5d0a Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/c3.png differ diff --git a/cron_failure_notification/static/description/assets/screenshots/hero.gif b/cron_failure_notification/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..d80a88971 Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/hero.gif differ diff --git a/cron_failure_notification/static/description/banner.png b/cron_failure_notification/static/description/banner.png new file mode 100644 index 000000000..bfaa6739e Binary files /dev/null and b/cron_failure_notification/static/description/banner.png differ diff --git a/cron_failure_notification/static/description/icon.png b/cron_failure_notification/static/description/icon.png new file mode 100644 index 000000000..19c93c18b Binary files /dev/null and b/cron_failure_notification/static/description/icon.png differ diff --git a/cron_failure_notification/static/description/index.html b/cron_failure_notification/static/description/index.html new file mode 100644 index 000000000..a1adb12b1 --- /dev/null +++ b/cron_failure_notification/static/description/index.html @@ -0,0 +1,625 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ + + +

+ Cron Failure Notification

+

+ Notify the Admin through Mail with List of Failures

+ + + +
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ Cron failure notification module helps to notify the failures of the cron action failures through sending an + email with attached pdf containing + the list of failed cron actions. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Creating Failure History. +
+
+ + Notify the Admin Through Mail. +
+
+ + The Mail Contains Details of Cron Failure History with a Pdf Report. +
+
+ + Mail will Sends all Day Only if there is a Failure. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Cron Action that Sends the Admin with Failed cron History.

+ +
+
+

+ Failure History

+

Failures that happens in cron, will record as a history

+ +
+
+

+ Pdf Attached with Mail

+

Sends to admin mail

+ +
+
+
+ + + +
+
+ +
+

+ Related + Products +

+
+
+
+ +
+
+ + + + +
+
+ +
+

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/cron_failure_notification/views/failure_history_views.xml b/cron_failure_notification/views/failure_history_views.xml new file mode 100644 index 000000000..21339fadb --- /dev/null +++ b/cron_failure_notification/views/failure_history_views.xml @@ -0,0 +1,47 @@ + + + + + Failure History + ir.actions.act_window + failure.history + tree,form + + + + failure.history.view.tree + failure.history + + + + + + + + + failure.history.view.form + failure.history + +
+ + + + + + + + + + + + +
+ + +
+
+
+
+ + +
\ No newline at end of file diff --git a/cron_failure_notification/views/ir_cron_views.xml b/cron_failure_notification/views/ir_cron_views.xml new file mode 100644 index 000000000..b0c24e9b5 --- /dev/null +++ b/cron_failure_notification/views/ir_cron_views.xml @@ -0,0 +1,18 @@ + + + + + + ir.cron.view.form.inherited.cron_failure_notification + + ir.cron + + + +
+ +
+
+
+
+
\ No newline at end of file