diff --git a/scheduled_action_shortcut/README.rst b/scheduled_action_shortcut/README.rst new file mode 100644 index 000000000..e416cb7fe --- /dev/null +++ b/scheduled_action_shortcut/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Scheduled Action Shortcut +========================= +This module allow to run the scheduled actions through systray. + +Configuration +============= +Nothing to configure. + +License +------- +Lesser General Public License, Version 3 (LGPL v3) +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V16) Albin PJ, + (V17) Sruthi pavithran +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/scheduled_action_shortcut/__init__.py b/scheduled_action_shortcut/__init__.py new file mode 100644 index 000000000..c9f38348d --- /dev/null +++ b/scheduled_action_shortcut/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sruthi pavithran (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models diff --git a/scheduled_action_shortcut/__manifest__.py b/scheduled_action_shortcut/__manifest__.py new file mode 100644 index 000000000..b7cdd0a42 --- /dev/null +++ b/scheduled_action_shortcut/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sruthi pavithran (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'Scheduled Action Shortcut', + 'version': '17.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """Scheduled Action Shortcut to run through systray""", + 'description': """Scheduled Action Shortcut helps you to run the scheduled + actions through systray""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base'], + 'data': [ + 'views/ir_cron_views.xml' + ], + 'assets': + { + 'web.assets_backend': [ + 'scheduled_action_shortcut/static/src/xml/systray_icon.xml', + 'scheduled_action_shortcut/static/src/js/systray_icon_scheduled_action.js', + 'scheduled_action_shortcut/static/src/js/scheduled_actions.js', + 'scheduled_action_shortcut/static/src/css/style.css' + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/scheduled_action_shortcut/doc/RELEASE_NOTES.md b/scheduled_action_shortcut/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..586e9f2a0 --- /dev/null +++ b/scheduled_action_shortcut/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 04.05.2024 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Scheduled Action Shortcut diff --git a/scheduled_action_shortcut/models/__init__.py b/scheduled_action_shortcut/models/__init__.py new file mode 100644 index 000000000..88e9f42f1 --- /dev/null +++ b/scheduled_action_shortcut/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sruthi pavithran (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import ir_cron diff --git a/scheduled_action_shortcut/models/ir_cron.py b/scheduled_action_shortcut/models/ir_cron.py new file mode 100644 index 000000000..5d6a8c3a7 --- /dev/null +++ b/scheduled_action_shortcut/models/ir_cron.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sruthi pavithran (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class IrCron(models.Model): + """If we enable this boolean, That records only shows in that systray""" + _inherit = 'ir.cron' + + run_through_systray = fields.Boolean(string="Run Through Systray", + help="Enable this and scheduled " + "acton shows on systray") + + def run_scheduled_actions(self): + """This is used to run the scheduled action""" + self.method_direct_trigger() diff --git a/scheduled_action_shortcut/static/description/assets/icons/check.png b/scheduled_action_shortcut/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/check.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/chevron.png b/scheduled_action_shortcut/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/chevron.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/cogs.png b/scheduled_action_shortcut/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/cogs.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/consultation.png b/scheduled_action_shortcut/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/consultation.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/ecom-black.png b/scheduled_action_shortcut/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/ecom-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/education-black.png b/scheduled_action_shortcut/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/education-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/hotel-black.png b/scheduled_action_shortcut/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/hotel-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/license.png b/scheduled_action_shortcut/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/license.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/lifebuoy.png b/scheduled_action_shortcut/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/lifebuoy.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/logo.png b/scheduled_action_shortcut/static/description/assets/icons/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/logo.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/manufacturing-black.png b/scheduled_action_shortcut/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/manufacturing-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/pos-black.png b/scheduled_action_shortcut/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/pos-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/puzzle.png b/scheduled_action_shortcut/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/puzzle.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/restaurant-black.png b/scheduled_action_shortcut/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/restaurant-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/service-black.png b/scheduled_action_shortcut/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/service-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/trading-black.png b/scheduled_action_shortcut/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/trading-black.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/training.png b/scheduled_action_shortcut/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/training.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/update.png b/scheduled_action_shortcut/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/update.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/user.png b/scheduled_action_shortcut/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/user.png differ diff --git a/scheduled_action_shortcut/static/description/assets/icons/wrench.png b/scheduled_action_shortcut/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/icons/wrench.png differ diff --git a/scheduled_action_shortcut/static/description/assets/misc/Cybrosys R.png b/scheduled_action_shortcut/static/description/assets/misc/Cybrosys R.png new file mode 100755 index 000000000..da4058087 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/misc/Cybrosys R.png differ diff --git a/scheduled_action_shortcut/static/description/assets/misc/email.svg b/scheduled_action_shortcut/static/description/assets/misc/email.svg new file mode 100755 index 000000000..15291cdc3 --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/phone.svg b/scheduled_action_shortcut/static/description/assets/misc/phone.svg new file mode 100755 index 000000000..b7bd7f251 --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/star (1) 2.svg b/scheduled_action_shortcut/static/description/assets/misc/star (1) 2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/support (1) 1.svg b/scheduled_action_shortcut/static/description/assets/misc/support (1) 1.svg new file mode 100755 index 000000000..7d37a8f30 --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/support-email.svg b/scheduled_action_shortcut/static/description/assets/misc/support-email.svg new file mode 100755 index 000000000..eb70370d6 --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/tick-mark.svg b/scheduled_action_shortcut/static/description/assets/misc/tick-mark.svg new file mode 100755 index 000000000..2dbb40187 --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/whatsapp 1.svg b/scheduled_action_shortcut/static/description/assets/misc/whatsapp 1.svg new file mode 100755 index 000000000..0bfaf8fc6 --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/misc/whatsapp.svg b/scheduled_action_shortcut/static/description/assets/misc/whatsapp.svg new file mode 100755 index 000000000..b618aea1d --- /dev/null +++ b/scheduled_action_shortcut/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scheduled_action_shortcut/static/description/assets/modules/1.jpg b/scheduled_action_shortcut/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..693671ccf Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/1.jpg differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/2.jpg b/scheduled_action_shortcut/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..9310909d6 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/2.jpg differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/3.png b/scheduled_action_shortcut/static/description/assets/modules/3.png new file mode 100644 index 000000000..d7ef56df4 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/3.png differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/4.png b/scheduled_action_shortcut/static/description/assets/modules/4.png new file mode 100644 index 000000000..2b03b8c31 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/4.png differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/5.png b/scheduled_action_shortcut/static/description/assets/modules/5.png new file mode 100644 index 000000000..33372bdc1 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/5.png differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/6.jpg b/scheduled_action_shortcut/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..9310909d6 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/6.jpg differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/7.png b/scheduled_action_shortcut/static/description/assets/modules/7.png new file mode 100644 index 000000000..d7ef56df4 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/7.png differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/8.png b/scheduled_action_shortcut/static/description/assets/modules/8.png new file mode 100644 index 000000000..b97f6e369 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/8.png differ diff --git a/scheduled_action_shortcut/static/description/assets/modules/9.jpg b/scheduled_action_shortcut/static/description/assets/modules/9.jpg new file mode 100644 index 000000000..c13b125bc Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/modules/9.jpg differ diff --git a/scheduled_action_shortcut/static/description/assets/screenshots/hero.gif b/scheduled_action_shortcut/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..b1a2ab351 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/screenshots/hero.gif differ diff --git a/scheduled_action_shortcut/static/description/assets/screenshots/schedule1.png b/scheduled_action_shortcut/static/description/assets/screenshots/schedule1.png new file mode 100644 index 000000000..e8f4917b1 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/screenshots/schedule1.png differ diff --git a/scheduled_action_shortcut/static/description/assets/screenshots/schedule2.png b/scheduled_action_shortcut/static/description/assets/screenshots/schedule2.png new file mode 100644 index 000000000..4dc663a71 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/screenshots/schedule2.png differ diff --git a/scheduled_action_shortcut/static/description/assets/screenshots/schedule3.png b/scheduled_action_shortcut/static/description/assets/screenshots/schedule3.png new file mode 100644 index 000000000..8194ff9bd Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/screenshots/schedule3.png differ diff --git a/scheduled_action_shortcut/static/description/assets/screenshots/schedule5.png b/scheduled_action_shortcut/static/description/assets/screenshots/schedule5.png new file mode 100644 index 000000000..09fa0c587 Binary files /dev/null and b/scheduled_action_shortcut/static/description/assets/screenshots/schedule5.png differ diff --git a/scheduled_action_shortcut/static/description/banner.jpg b/scheduled_action_shortcut/static/description/banner.jpg new file mode 100644 index 000000000..75278663d Binary files /dev/null and b/scheduled_action_shortcut/static/description/banner.jpg differ diff --git a/scheduled_action_shortcut/static/description/icon.png b/scheduled_action_shortcut/static/description/icon.png new file mode 100644 index 000000000..67da0ed6e Binary files /dev/null and b/scheduled_action_shortcut/static/description/icon.png differ diff --git a/scheduled_action_shortcut/static/description/index.html b/scheduled_action_shortcut/static/description/index.html new file mode 100644 index 000000000..3a50aa1d2 --- /dev/null +++ b/scheduled_action_shortcut/static/description/index.html @@ -0,0 +1,696 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Scheduled Action Shortcut

+

+ Users can run scheduled actions through systray. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Manage Scheduled Action

+

This module + allow to manage scheduled actions through + systray. +

+
+
+
+
+
+
+ +
+
+

+ Reduce Complexity

+

Reduce + Complexity of managing schedule action. +

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

+ Enable the boolean field to run scheduled + actions through systray, Only enabled + scheduled action are shown on the + systray.

+
+
+
+
+
+
+ +
+
+

+ You can see the systray, Click On It.

+
+
+
+
+
+
+ +
+
+

+ Here, You can see the scheduled + actions.

+
+
+
+
+
+
+ +
+
+

+ Click on the button to run scheduled + actions.

+
+
+
+
+
+
+
    +
  • + Allow you to + manage scheduled actions. +
  • +
  • + We can save our + time. +
  • +
  • + Reduce the + complexity. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:04th May 2024 +
+

+ Initial Commit for Scheduled Action + Shortcut.

+
+
+
+
+
+
+
+

+ 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/scheduled_action_shortcut/static/src/css/style.css b/scheduled_action_shortcut/static/src/css/style.css new file mode 100644 index 000000000..69a96e97e --- /dev/null +++ b/scheduled_action_shortcut/static/src/css/style.css @@ -0,0 +1,37 @@ +.botIcon{ + box-shadow: 0 1rem 1.1rem rgb(0 0 0 / 10%); + background: white; + position: fixed; + top: 4.1%; + left: 64.5%; + width: 450px; + min-height: 61px; + border: 1px solid #00000021; +} +.cron_container{ + display: flex; + align-items: center; + justify-content: space-between; + padding: 10px; + width: 100%; + border-top: 1.5px solid #00000021; +} +.cron_container:hover{ + background-color: #ededed; +} +.cron_empty_container{ + text-align: center; + margin-top: revert; + opacity: 0.5; +} +.cron_name{ + font-size: 14px; + font-weight: 500; + color: #1e1f20e3; +} +.cron_nextcall{ + font-size: 11px; +} +.p_class{ + margin-bottom: 0; +} diff --git a/scheduled_action_shortcut/static/src/js/scheduled_actions.js b/scheduled_action_shortcut/static/src/js/scheduled_actions.js new file mode 100644 index 000000000..834df229e --- /dev/null +++ b/scheduled_action_shortcut/static/src/js/scheduled_actions.js @@ -0,0 +1,63 @@ + /** @odoo-module **/ + import { useService } from "@web/core/utils/hooks"; + + const { Component, xml, onMounted, useRef, useEffect, onWillDestroy } = owl; +/** + * ScheduledActionsTemplate component for displaying scheduled actions in the systray. + */ + export class ScheduledActionsTemplate extends owl.Component { + setup() { + super.setup() + this.orm = useService("orm"); + this.env.bus.addEventListener("closeAllEvent:SA", () => document.body.removeEventListener("click",this.closeDropdown.bind(this))) + this.root = useRef("botIcon") + onMounted(this.scheduled_action_records) + useEffect(() => { `` + document.body.addEventListener("click",this.closeDropdown.bind(this)) + return () => { + document.body.removeEventListener("click",this.closeDropdown.bind(this)) + } + }, () => []) + onWillDestroy(() => document.body.removeEventListener("click",this.closeDropdown.bind(this))) + } + // This is a on mound function and it will return the ir.cron data based on the domain and it will append to the template. + async scheduled_action_records() { + var self = this; + await this.orm.call("ir.cron", "search_read", [], { + domain: [['run_through_systray', '=', 'True']], + }).then(function(data) { + var div_body = $(self.__owl__.bdom.el).find('.cron_msg') + if (data.length == 0) { + div_body.append("

There is no scheduled actions here, Enable the boolean to run.

") + } else if (data.length > 0) { + data.forEach(function(res) { + div_body.append("

" + res.cron_name + "

Next Call : " + res.nextcall + "

") + }); + } + }) + // This is for Call the button to Run + $(self.__owl__.bdom.el).find('.cron_btn').click(function(ev) { + self.cron_run_button(ev) + }); + } + // Passing the corresponding cron data through rpc + cron_run_button(ev) { + var cron_id = parseInt(ev.currentTarget.id) + this.orm.call('ir.cron', 'run_scheduled_actions', [cron_id]); + } + closeDropdown(ev) { + if (this.root.el && !this.root.el?.contains(ev.target)) { + document.body.removeEventListener("click",this.closeDropdown.bind(this)) + this.props.setDropDown(false) + this.root.el.remove() + return + } + document.body.removeEventListener("click",this.closeDropdown.bind(this)) + } + } + // Template for scheduled action on the systray + ScheduledActionsTemplate.template = xml` +
+
+
+
` diff --git a/scheduled_action_shortcut/static/src/js/systray_icon_scheduled_action.js b/scheduled_action_shortcut/static/src/js/systray_icon_scheduled_action.js new file mode 100644 index 000000000..fdd7f8549 --- /dev/null +++ b/scheduled_action_shortcut/static/src/js/systray_icon_scheduled_action.js @@ -0,0 +1,42 @@ +/** @odoo-module **/ +import { registry } from "@web/core/registry"; +import { useService } from "@web/core/utils/hooks"; +import { ScheduledActionsTemplate } from './scheduled_actions'; +const { mount } = owl; +/** + * ScheduledActions component for managing scheduled actions in the systray. + */ +class ScheduledActions extends owl.Component { + setup() { + this.action = useService("action"); + } + setDropDown(event) { + this.schedule_dropdown = event + } + // This function will call at the time of clicking the systray icon + _onClickScheduledAction() { + var self = this; + if (!this.schedule_dropdown) { + this.schedule_dropdown = mount(ScheduledActionsTemplate, document.body ,{ + props: { + setDropDown: this.setDropDown.bind(this) + }, + env: this.env + }) + } else if (this.schedule_dropdown) { + this.schedule_dropdown.then((res) => { + res.__owl__.remove() + this.env.bus.trigger("closeAllEvent:SA") + delete self.schedule_dropdown + }) + } + } +} +ScheduledActions.template = "stick_scheduled_action.ScheduledActionSystray"; +export const systrayItem = { + Component: ScheduledActions +}; +registry.category("systray") + .add("ScheduledActions", systrayItem, { + sequence: 1 + }); diff --git a/scheduled_action_shortcut/static/src/xml/systray_icon.xml b/scheduled_action_shortcut/static/src/xml/systray_icon.xml new file mode 100644 index 000000000..60b82775c --- /dev/null +++ b/scheduled_action_shortcut/static/src/xml/systray_icon.xml @@ -0,0 +1,13 @@ + + + + +
+ +
+
+
diff --git a/scheduled_action_shortcut/views/ir_cron_views.xml b/scheduled_action_shortcut/views/ir_cron_views.xml new file mode 100644 index 000000000..e90c19868 --- /dev/null +++ b/scheduled_action_shortcut/views/ir_cron_views.xml @@ -0,0 +1,14 @@ + + + + + ir.cron.view.form.inherit.scheduled.action.shortcut + ir.cron + + + + + + + +