diff --git a/cron_failure_notification/README.rst b/cron_failure_notification/README.rst new file mode 100755 index 000000000..b72eb6375 --- /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 +========================= +* Notify the Admin About Cron Failures Via Mail. + +Configuration +============ +- www.odoo.com/documentation/17.0/setup/install.html +- Install our custom addon + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL V3). +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (V17) Mohammed Dilshad Tk, Contact: odoo@cybrosys.com + +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 100755 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 100755 index 000000000..c001183f9 --- /dev/null +++ b/cron_failure_notification/__manifest__.py @@ -0,0 +1,46 @@ +# -*- 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': '17.0.1.0.0', + 'category': 'Discuss', + 'summary': 'Notify the Admin About Cron Failures Via Mail', + 'description': """This module helps to send notification to admin with + lists of failed scheduled actions.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['mail'], + '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'], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + '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 100755 index 000000000..5cfcea906 --- /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 + + + diff --git a/cron_failure_notification/data/mail_template_data.xml b/cron_failure_notification/data/mail_template_data.xml new file mode 100755 index 000000000..e16e9108f --- /dev/null +++ b/cron_failure_notification/data/mail_template_data.xml @@ -0,0 +1,20 @@ + + + + + + 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.

+
+
+
+
diff --git a/cron_failure_notification/doc/RELEASE_NOTES.md b/cron_failure_notification/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..443e5a585 --- /dev/null +++ b/cron_failure_notification/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 23.12.2023 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for Cron Failure Notification diff --git a/cron_failure_notification/models/__init__.py b/cron_failure_notification/models/__init__.py new file mode 100755 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 100755 index 000000000..375476b10 --- /dev/null +++ b/cron_failure_notification/models/failure_history.py @@ -0,0 +1,35 @@ +# -*- 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 to store the failed cron action details + as a record""" + _name = 'failure.history' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _description = 'Failure History' + + name = fields.Char(string='Name', required=True, help="Failed cron action " + "name") + error = fields.Char(string='Error Details', help="Detailed description " + "about error") diff --git a/cron_failure_notification/models/ir_cron.py b/cron_failure_notification/models/ir_cron.py new file mode 100755 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 100755 index 000000000..17e334a94 --- /dev/null +++ b/cron_failure_notification/report/ir_cron_failure_templates.xml @@ -0,0 +1,57 @@ + + + + + + diff --git a/cron_failure_notification/report/ir_cron_reports.xml b/cron_failure_notification/report/ir_cron_reports.xml new file mode 100755 index 000000000..abaf22018 --- /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 + + diff --git a/cron_failure_notification/security/ir.model.access.csv b/cron_failure_notification/security/ir.model.access.csv new file mode 100755 index 000000000..daeca37d9 --- /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,access.failure.history,model_failure_history,base.group_user,1,1,1,1 diff --git a/cron_failure_notification/static/description/assets/icons/capture (1).png b/cron_failure_notification/static/description/assets/icons/capture (1).png new file mode 100755 index 000000000..8824deafc Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/capture (1).png differ 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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/img.png b/cron_failure_notification/static/description/assets/icons/img.png new file mode 100755 index 000000000..70197f477 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/img.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 100755 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 100755 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/manufacturing-black.png b/cron_failure_notification/static/description/assets/icons/manufacturing-black.png new file mode 100755 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/photo-capture.png b/cron_failure_notification/static/description/assets/icons/photo-capture.png new file mode 100755 index 000000000..06c111758 Binary files /dev/null and b/cron_failure_notification/static/description/assets/icons/photo-capture.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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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/Cybrosys R.png b/cron_failure_notification/static/description/assets/misc/Cybrosys R.png new file mode 100755 index 000000000..da4058087 Binary files /dev/null and b/cron_failure_notification/static/description/assets/misc/Cybrosys R.png differ diff --git a/cron_failure_notification/static/description/assets/misc/email.svg b/cron_failure_notification/static/description/assets/misc/email.svg new file mode 100755 index 000000000..15291cdc3 --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cron_failure_notification/static/description/assets/misc/phone.svg b/cron_failure_notification/static/description/assets/misc/phone.svg new file mode 100755 index 000000000..b7bd7f251 --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/cron_failure_notification/static/description/assets/misc/star (1) 2.svg b/cron_failure_notification/static/description/assets/misc/star (1) 2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/cron_failure_notification/static/description/assets/misc/support (1) 1.svg b/cron_failure_notification/static/description/assets/misc/support (1) 1.svg new file mode 100755 index 000000000..7d37a8f30 --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/cron_failure_notification/static/description/assets/misc/support-email.svg b/cron_failure_notification/static/description/assets/misc/support-email.svg new file mode 100755 index 000000000..eb70370d6 --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/cron_failure_notification/static/description/assets/misc/tick-mark.svg b/cron_failure_notification/static/description/assets/misc/tick-mark.svg new file mode 100755 index 000000000..2dbb40187 --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/cron_failure_notification/static/description/assets/misc/whatsapp 1.svg b/cron_failure_notification/static/description/assets/misc/whatsapp 1.svg new file mode 100755 index 000000000..0bfaf8fc6 --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/cron_failure_notification/static/description/assets/misc/whatsapp.svg b/cron_failure_notification/static/description/assets/misc/whatsapp.svg new file mode 100755 index 000000000..b618aea1d --- /dev/null +++ b/cron_failure_notification/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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/1.png b/cron_failure_notification/static/description/assets/screenshots/1.png new file mode 100755 index 000000000..255935944 Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/1.png differ diff --git a/cron_failure_notification/static/description/assets/screenshots/2.png b/cron_failure_notification/static/description/assets/screenshots/2.png new file mode 100755 index 000000000..ea0ab725b Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/2.png differ diff --git a/cron_failure_notification/static/description/assets/screenshots/3.png b/cron_failure_notification/static/description/assets/screenshots/3.png new file mode 100755 index 000000000..048e8d353 Binary files /dev/null and b/cron_failure_notification/static/description/assets/screenshots/3.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..065c81315 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 100755 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 100755 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 100755 index 000000000..e8e3b60c8 --- /dev/null +++ b/cron_failure_notification/static/description/index.html @@ -0,0 +1,712 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Cron Failure Notification

+

+ Notify the Admin About Cron Failures Via Mail

+ +
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Creating Failure History.

+

Automatically cron failures creates as a record. +

+
+
+
+
+
+
+ +
+
+

Notify the Admin About Failures

+

Sends the email to admin. +

+
+
+
+
+
+
+ +
+
+

+ Mail Contains Report of Failed Cron Actions +

The Mail Contains Details of Cron Failure History with a Pdf Report. +

+
+
+
+
+
+
+ +
+
+

+ Every Day Notification

+

Mail will Send all Day Only if there is a Failure. +

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

+ 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 mai

+
+
+ +
+
+
+
+
+
+
    +
  • + Creating Failure History +
  • +
  • + Notify the Admin Through Mail +
  • +
  • + The Mail Contains Details of Cron Failure History with a Pdf Report +
  • +
  • + Mail will Send all Day Only if there is a Failure +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:03th Nov 2023 +
+

+ Initial Commit for Cron Failure Notification

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/cron_failure_notification/views/failure_history_views.xml b/cron_failure_notification/views/failure_history_views.xml new file mode 100755 index 000000000..e194918ad --- /dev/null +++ b/cron_failure_notification/views/failure_history_views.xml @@ -0,0 +1,49 @@ + + + + + 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 100755 index 000000000..aac3f093b --- /dev/null +++ b/cron_failure_notification/views/ir_cron_views.xml @@ -0,0 +1,16 @@ + + + + + ir.cron.view.form.inherited.cron_failure_notification + ir.cron + + + +
+ +
+
+
+
+
\ No newline at end of file