diff --git a/systray_world_clock/README.rst b/systray_world_clock/README.rst new file mode 100644 index 000000000..3e0c6d47f --- /dev/null +++ b/systray_world_clock/README.rst @@ -0,0 +1,53 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Systray World Clock +=================== +Module enables user to add world clocks of selected timezones in +the systray dropdown. + +Configuration +============= +The desired timezone and title for the clocks can be configured in +the settings page. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V18) Mufeeda Shirin, Nivedhya T, + (V17)Busthana Shirin, + (V15) Abhijith PG, +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/systray_world_clock/__init__.py b/systray_world_clock/__init__.py new file mode 100644 index 000000000..af4285d9e --- /dev/null +++ b/systray_world_clock/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (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/systray_world_clock/__manifest__.py b/systray_world_clock/__manifest__.py new file mode 100644 index 000000000..dbeb6f777 --- /dev/null +++ b/systray_world_clock/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (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': "Systray World Clock", + 'version': '18.0.1.0.0', + 'category': 'Productivity', + 'summary': """Keep track of the time in different countries around the + world.""", + 'description': """This module adds a world clock in the systray which + displays the time in different countries around the world. + The time zone can be customized in the settings""", + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'web'], + 'data': [ + 'security/ir.model.access.csv', + 'views/systray_world_clock_config_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'systray_world_clock/static/src/js/SystrayWorldClock.js', + 'systray_world_clock/static/src/xml/systray_world_clock.xml', + 'systray_world_clock/static/src/scss/systray_world_clock.scss' + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/systray_world_clock/doc/RELEASE_NOTES.md b/systray_world_clock/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a9a25b581 --- /dev/null +++ b/systray_world_clock/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 15.07.2025 +#### Version 18.0.1.0.0 +##### ADD +- Initial commit for Systray World Clock diff --git a/systray_world_clock/models/__init__.py b/systray_world_clock/models/__init__.py new file mode 100644 index 000000000..10ec659d6 --- /dev/null +++ b/systray_world_clock/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (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 systray_world_clock_config diff --git a/systray_world_clock/models/systray_world_clock_config.py b/systray_world_clock/models/systray_world_clock_config.py new file mode 100644 index 000000000..d162edb95 --- /dev/null +++ b/systray_world_clock/models/systray_world_clock_config.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (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 pytz +from datetime import datetime +from odoo import api, fields, models +from odoo.addons.base.models.res_partner import _tz_get + + +class SystrayWorldClockConfig(models.Model): + """A model representing the configuration of a world clock in the systray. + """ + _name = 'systray.world.clock.config' + _description = 'Systray World Clock Configuration' + + name = fields.Char(string='Location', required=True, + help='Location associated with this clock.') + tz = fields.Selection(_tz_get, required=True, string='Timezone', + help='Timezone of the clock.') + offset = fields.Float(string="Offset", + help='The time difference between the timezone and ' + 'UTC, in hours.') + + @api.onchange('tz') + def _onchange_tz(self): + """Calculate the time offset between the selected timezone and UTC. + This method is called automatically whenever the timezone field is + changed. + """ + if self.tz: + utc_dt = pytz.utc.localize(datetime.utcnow()) + tz = pytz.timezone(self.tz) + local_dt = utc_dt.astimezone(tz) + self.offset = local_dt.utcoffset().total_seconds() / 3600 diff --git a/systray_world_clock/security/ir.model.access.csv b/systray_world_clock/security/ir.model.access.csv new file mode 100644 index 000000000..d7e3a33a0 --- /dev/null +++ b/systray_world_clock/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_systray_world_clock_config_user,access.systray.world.clock.config.user,model_systray_world_clock_config,base.group_user,1,1,1,1 diff --git a/systray_world_clock/static/description/assets/cybro-icon.png b/systray_world_clock/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/systray_world_clock/static/description/assets/cybro-icon.png differ diff --git a/systray_world_clock/static/description/assets/cybro-odoo.png b/systray_world_clock/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/systray_world_clock/static/description/assets/cybro-odoo.png differ diff --git a/systray_world_clock/static/description/assets/icons/arrows-repeat.svg b/systray_world_clock/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/banner-1.png b/systray_world_clock/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/banner-1.png differ diff --git a/systray_world_clock/static/description/assets/icons/banner-2.svg b/systray_world_clock/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/banner-bg.png b/systray_world_clock/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/banner-bg.png differ diff --git a/systray_world_clock/static/description/assets/icons/banner-bg.svg b/systray_world_clock/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/banner-call.svg b/systray_world_clock/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/systray_world_clock/static/description/assets/icons/banner-mail.svg b/systray_world_clock/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/systray_world_clock/static/description/assets/icons/banner-pattern.svg b/systray_world_clock/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/banner-promo.svg b/systray_world_clock/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/brand-pair.svg b/systray_world_clock/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/check.png b/systray_world_clock/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/check.png differ diff --git a/systray_world_clock/static/description/assets/icons/chevron.png b/systray_world_clock/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/chevron.png differ diff --git a/systray_world_clock/static/description/assets/icons/close-icon.svg b/systray_world_clock/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/systray_world_clock/static/description/assets/icons/cogs.png b/systray_world_clock/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/cogs.png differ diff --git a/systray_world_clock/static/description/assets/icons/collabarate-icon.svg b/systray_world_clock/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/systray_world_clock/static/description/assets/icons/consultation.png b/systray_world_clock/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/consultation.png differ diff --git a/systray_world_clock/static/description/assets/icons/cybro-logo.png b/systray_world_clock/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/cybro-logo.png differ diff --git a/systray_world_clock/static/description/assets/icons/down.svg b/systray_world_clock/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/systray_world_clock/static/description/assets/icons/ecom-black.png b/systray_world_clock/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/ecom-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/education-black.png b/systray_world_clock/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/education-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/faq.png b/systray_world_clock/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/faq.png differ diff --git a/systray_world_clock/static/description/assets/icons/feature-icon.svg b/systray_world_clock/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/feature.png b/systray_world_clock/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/feature.png differ diff --git a/systray_world_clock/static/description/assets/icons/gear.svg b/systray_world_clock/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/hero.gif b/systray_world_clock/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..f88234501 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/hero.gif differ diff --git a/systray_world_clock/static/description/assets/icons/hire-odoo.svg b/systray_world_clock/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/hotel-black.png b/systray_world_clock/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/hotel-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/license.png b/systray_world_clock/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/license.png differ diff --git a/systray_world_clock/static/description/assets/icons/life-ring-icon.svg b/systray_world_clock/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/lifebuoy.png b/systray_world_clock/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/lifebuoy.png differ diff --git a/systray_world_clock/static/description/assets/icons/mail.svg b/systray_world_clock/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/systray_world_clock/static/description/assets/icons/manufacturing-black.png b/systray_world_clock/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/manufacturing-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/notes.png b/systray_world_clock/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/notes.png differ diff --git a/systray_world_clock/static/description/assets/icons/notification icon.svg b/systray_world_clock/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/odoo-consultancy.svg b/systray_world_clock/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/systray_world_clock/static/description/assets/icons/odoo-licencing.svg b/systray_world_clock/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/systray_world_clock/static/description/assets/icons/odoo-logo.png b/systray_world_clock/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/odoo-logo.png differ diff --git a/systray_world_clock/static/description/assets/icons/patter.svg b/systray_world_clock/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/pattern1.png b/systray_world_clock/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/pattern1.png differ diff --git a/systray_world_clock/static/description/assets/icons/pos-black.png b/systray_world_clock/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/pos-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/puzzle-piece-icon.svg b/systray_world_clock/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/puzzle.png b/systray_world_clock/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/puzzle.png differ diff --git a/systray_world_clock/static/description/assets/icons/replace-icon.svg b/systray_world_clock/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/restaurant-black.png b/systray_world_clock/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/restaurant-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/screenshot-main.png b/systray_world_clock/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/screenshot-main.png differ diff --git a/systray_world_clock/static/description/assets/icons/screenshot.png b/systray_world_clock/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/screenshot.png differ diff --git a/systray_world_clock/static/description/assets/icons/service-black.png b/systray_world_clock/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/service-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/skype-fill.svg b/systray_world_clock/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/skype.png b/systray_world_clock/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/skype.png differ diff --git a/systray_world_clock/static/description/assets/icons/skype.svg b/systray_world_clock/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/systray_world_clock/static/description/assets/icons/star-1.svg b/systray_world_clock/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/star-2.svg b/systray_world_clock/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/support.png b/systray_world_clock/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/support.png differ diff --git a/systray_world_clock/static/description/assets/icons/test-1 - Copy.png b/systray_world_clock/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/test-1 - Copy.png differ diff --git a/systray_world_clock/static/description/assets/icons/test-1.png b/systray_world_clock/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/test-1.png differ diff --git a/systray_world_clock/static/description/assets/icons/test-2.png b/systray_world_clock/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/test-2.png differ diff --git a/systray_world_clock/static/description/assets/icons/trading-black.png b/systray_world_clock/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/trading-black.png differ diff --git a/systray_world_clock/static/description/assets/icons/training.png b/systray_world_clock/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/training.png differ diff --git a/systray_world_clock/static/description/assets/icons/translate.svg b/systray_world_clock/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/update.png b/systray_world_clock/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/update.png differ diff --git a/systray_world_clock/static/description/assets/icons/user.png b/systray_world_clock/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/user.png differ diff --git a/systray_world_clock/static/description/assets/icons/video.png b/systray_world_clock/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/video.png differ diff --git a/systray_world_clock/static/description/assets/icons/whatsapp.png b/systray_world_clock/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/whatsapp.png differ diff --git a/systray_world_clock/static/description/assets/icons/wrench-icon.svg b/systray_world_clock/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/systray_world_clock/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/systray_world_clock/static/description/assets/icons/wrench.png b/systray_world_clock/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/systray_world_clock/static/description/assets/icons/wrench.png differ diff --git a/systray_world_clock/static/description/assets/modules/banner1.jpg b/systray_world_clock/static/description/assets/modules/banner1.jpg new file mode 100644 index 000000000..2a6617744 Binary files /dev/null and b/systray_world_clock/static/description/assets/modules/banner1.jpg differ diff --git a/systray_world_clock/static/description/assets/modules/banner2.png b/systray_world_clock/static/description/assets/modules/banner2.png new file mode 100644 index 000000000..98b9ad696 Binary files /dev/null and b/systray_world_clock/static/description/assets/modules/banner2.png differ diff --git a/systray_world_clock/static/description/assets/modules/banner3.jpg b/systray_world_clock/static/description/assets/modules/banner3.jpg new file mode 100644 index 000000000..1623d9406 Binary files /dev/null and b/systray_world_clock/static/description/assets/modules/banner3.jpg differ diff --git a/systray_world_clock/static/description/assets/modules/banner4.jpg b/systray_world_clock/static/description/assets/modules/banner4.jpg new file mode 100644 index 000000000..ac2ec7832 Binary files /dev/null and b/systray_world_clock/static/description/assets/modules/banner4.jpg differ diff --git a/systray_world_clock/static/description/assets/modules/banner5.jpg b/systray_world_clock/static/description/assets/modules/banner5.jpg new file mode 100644 index 000000000..eda1c63c0 Binary files /dev/null and b/systray_world_clock/static/description/assets/modules/banner5.jpg differ diff --git a/systray_world_clock/static/description/assets/modules/banner6.png b/systray_world_clock/static/description/assets/modules/banner6.png new file mode 100644 index 000000000..b540ce95e Binary files /dev/null and b/systray_world_clock/static/description/assets/modules/banner6.png differ diff --git a/systray_world_clock/static/description/assets/screenshots/screenshot1.png b/systray_world_clock/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..cc34683ae Binary files /dev/null and b/systray_world_clock/static/description/assets/screenshots/screenshot1.png differ diff --git a/systray_world_clock/static/description/assets/screenshots/screenshot2.png b/systray_world_clock/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..4ee439faa Binary files /dev/null and b/systray_world_clock/static/description/assets/screenshots/screenshot2.png differ diff --git a/systray_world_clock/static/description/assets/screenshots/screenshot3.png b/systray_world_clock/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..1aa51f420 Binary files /dev/null and b/systray_world_clock/static/description/assets/screenshots/screenshot3.png differ diff --git a/systray_world_clock/static/description/assets/screenshots/screenshot4.png b/systray_world_clock/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..f0436a6b9 Binary files /dev/null and b/systray_world_clock/static/description/assets/screenshots/screenshot4.png differ diff --git a/systray_world_clock/static/description/assets/screenshots/screenshot5.png b/systray_world_clock/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..ce3c3c828 Binary files /dev/null and b/systray_world_clock/static/description/assets/screenshots/screenshot5.png differ diff --git a/systray_world_clock/static/description/banner.png b/systray_world_clock/static/description/banner.png new file mode 100644 index 000000000..060d38da1 Binary files /dev/null and b/systray_world_clock/static/description/banner.png differ diff --git a/systray_world_clock/static/description/icon.png b/systray_world_clock/static/description/icon.png new file mode 100644 index 000000000..21149111a Binary files /dev/null and b/systray_world_clock/static/description/icon.png differ diff --git a/systray_world_clock/static/description/images/arrows-transparent.png b/systray_world_clock/static/description/images/arrows-transparent.png new file mode 100644 index 000000000..f2973bb02 Binary files /dev/null and b/systray_world_clock/static/description/images/arrows-transparent.png differ diff --git a/systray_world_clock/static/description/images/cybro_logo.png b/systray_world_clock/static/description/images/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/systray_world_clock/static/description/images/cybro_logo.png differ diff --git a/systray_world_clock/static/description/images/icons/ecom.png b/systray_world_clock/static/description/images/icons/ecom.png new file mode 100644 index 000000000..6e720d50e Binary files /dev/null and b/systray_world_clock/static/description/images/icons/ecom.png differ diff --git a/systray_world_clock/static/description/images/icons/education.png b/systray_world_clock/static/description/images/icons/education.png new file mode 100644 index 000000000..f0de98eb0 Binary files /dev/null and b/systray_world_clock/static/description/images/icons/education.png differ diff --git a/systray_world_clock/static/description/images/icons/hotel.png b/systray_world_clock/static/description/images/icons/hotel.png new file mode 100644 index 000000000..917c6a63e Binary files /dev/null and b/systray_world_clock/static/description/images/icons/hotel.png differ diff --git a/systray_world_clock/static/description/images/icons/manufacturing.png b/systray_world_clock/static/description/images/icons/manufacturing.png new file mode 100644 index 000000000..68c3722f8 Binary files /dev/null and b/systray_world_clock/static/description/images/icons/manufacturing.png differ diff --git a/systray_world_clock/static/description/images/icons/pos.png b/systray_world_clock/static/description/images/icons/pos.png new file mode 100644 index 000000000..600bfe4f9 Binary files /dev/null and b/systray_world_clock/static/description/images/icons/pos.png differ diff --git a/systray_world_clock/static/description/images/icons/restaurant.png b/systray_world_clock/static/description/images/icons/restaurant.png new file mode 100644 index 000000000..680acf29e Binary files /dev/null and b/systray_world_clock/static/description/images/icons/restaurant.png differ diff --git a/systray_world_clock/static/description/images/icons/service.png b/systray_world_clock/static/description/images/icons/service.png new file mode 100644 index 000000000..bfbe7a6d2 Binary files /dev/null and b/systray_world_clock/static/description/images/icons/service.png differ diff --git a/systray_world_clock/static/description/images/icons/trading.png b/systray_world_clock/static/description/images/icons/trading.png new file mode 100644 index 000000000..a741219b5 Binary files /dev/null and b/systray_world_clock/static/description/images/icons/trading.png differ diff --git a/systray_world_clock/static/description/index.html b/systray_world_clock/static/description/index.html new file mode 100644 index 000000000..2c53d587a --- /dev/null +++ b/systray_world_clock/static/description/index.html @@ -0,0 +1,1012 @@ + + + + + + Systray World Clock + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ This module helps to Restrict Customers In POS. +

+

Systray World Clock +

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

Key + Highlights

+
+
+
+
+ +
+
+ Different timezones. +
+

+ We can add different time zones. +

+
+
+
+
+
+ +
+
+ Digital and Analogue time. +
+

+ It displays both analog and digital + timezone. +

+
+
+
+
+
+ +
+
+ Theme +
+

+ Shows black theme at night. +

+
+
+
+
+ +
+
+
+ Systray World Clock +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ World Clock icon in + + systray. +

+
+
+

+ +

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

+ Configure + + Timezone. +

+
+
+

+ By Clicking the configuration + icon in the systray, you can + configure the timezone. +

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

+ Set the Location and + + Time Zone. +

+
+
+

+ You can configure the location + and timezone. +

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

+ View for + + field +

+
+
+

+ The globe icon in systray opens + the interface with all the + clocks configured in the + settings. +

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

+ Night theme for + + Night. +

+
+
+

+ If the time is night then the + background color will be dark. +

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

+ Available in Odoo Community and + Enterprise.

+
+ +
+
+
+
+
+
+ +
+

+ Displays both Digital and + Analogue time.

+
+ +
+
+
+
+
+
+ +
+

+ Shows dark theme at night.

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

+ This module adds a world + clock to the systray, + showing the current time + in multiple countries + across different time zones. +

+
+
+ +
+ +
+

+ The clock appears in + the top-right systray + area of the Odoo interface + for quick and easy access. +

+
+
+ +
+ +
+

+ Yes, you can display + clocks for multiple + countries or cities simultaneously. +

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

+ Latest Release 18.0.1.0.0 +

+ + 15th July 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/systray_world_clock/static/src/js/SystrayWorldClock.js b/systray_world_clock/static/src/js/SystrayWorldClock.js new file mode 100644 index 000000000..32e33d484 --- /dev/null +++ b/systray_world_clock/static/src/js/SystrayWorldClock.js @@ -0,0 +1,136 @@ +/** @odoo-module **/ +import { Component, useState, onMounted,useRef } from "@odoo/owl"; +import { useService } from "@web/core/utils/hooks"; +import { Dropdown } from "@web/core/dropdown/dropdown"; +import { registry } from "@web/core/registry"; + +export class Analogue extends Component { + static template = "systray_world_clock.AnalogueInterface"; + + setup() { + super.setup(); + this.hoursHandRef = useRef("hoursHand"); + this.minutesHandRef = useRef("minutesHand"); + this.secondsHandRef = useRef("secondsHand"); + this.clockElementRef = useRef("clockElement"); + onMounted(() => { + this.renderClock(); + this.interval = setInterval(() => { + this.renderClock(); + }, 1000); + }); + } + + calcTime(offset) { + const d = new Date(); + const utc = d.getTime() + (d.getTimezoneOffset() * 60000); + const nd = new Date(utc + (3600000 * offset)); + const options = { + year: 'numeric', + month: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + hour12: true + }; + return [nd, nd.toLocaleString('en-US', options)]; + } + + renderClock() { + const [nd, localestring] = this.calcTime(this.props.offset); + const h = ((nd.getHours() % 12) + nd.getMinutes() / 59) * 30; + const m = nd.getMinutes() * 6; + const s = nd.getSeconds() * 6; + + // Accessing the refs safely + if (this.hoursHandRef.el) this.hoursHandRef.el.style.transform = `rotate(${h}deg)`; + if (this.minutesHandRef.el) this.minutesHandRef.el.style.transform = `rotate(${m}deg)`; + if (this.secondsHandRef.el) this.secondsHandRef.el.style.transform = `rotate(${s}deg)`; + + const clockElement = this.clockElementRef.el; + if (clockElement) { + if (18 <= nd.getHours() || nd.getHours() < 6) { + clockElement.classList.add('night-clock'); + } else { + clockElement.classList.remove('night-clock'); + } + } + } + + willUnmount() { + clearInterval(this.interval); + } +} + +export class WorldClock extends Component { + static components = { Dropdown, Analogue }; + static template = "systray_world_clock.Systray_clock"; + + setup() { + super.setup(); + this.orm = useService("orm"); + this.action = useService("action"); + this.state = useState({ + isOpen: false, + notes: [], + }); + + this.loadClocks(); + } + + async loadClocks() { + const fields = ['name', 'tz', 'offset']; + const result = await this.orm.call("systray.world.clock.config", "search_read", [], { fields }); + + if (result.length > 0) { + this.state.isOpen = true; + const data = result.map(clock => { + const offsetStr = clock.offset.toString().replace('.', '_'); + const currentClockClass = 'clock' + offsetStr + clock.id; + const [nd, localestring] = this.calcTime(clock.offset); + return { + id: clock.id, + name: clock.name, + offset: clock.offset, + tz: clock.tz, + currentClockClass, + nd, + localestring, + }; + }); + this.state.notes = data; + } + } + + calcTime(offset) { + const d = new Date(); + const utc = d.getTime() + (d.getTimezoneOffset() * 60000); + const nd = new Date(utc + (3600000 * offset)); + const options = { + year: 'numeric', + month: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + hour12: true, + }; + return [nd, nd.toLocaleString('en-US', options)]; + } + + onClickSettings(ev) { + ev.stopPropagation(); + this.action.doAction({ + type: 'ir.actions.act_window', + name: 'Clock Settings', + res_model: 'systray.world.clock.config', + view_mode: 'list,form', + target: 'current', + views: [[false, 'list'], [false, 'form']], + }); + } +} + +export const systrayItem = { + Component: WorldClock, +}; +registry.category("systray").add("WorldClock", systrayItem, { sequence: 0 }); diff --git a/systray_world_clock/static/src/scss/systray_world_clock.scss b/systray_world_clock/static/src/scss/systray_world_clock.scss new file mode 100644 index 000000000..e48478f77 --- /dev/null +++ b/systray_world_clock/static/src/scss/systray_world_clock.scss @@ -0,0 +1,143 @@ +.systray_clock_dropdown { + padding: 2em; + width: 1100px; +} +.settings_tz { + position: relative; + top: -0.5rem; + color: blueviolet; + background: lavender; + border: aliceblue; + float:right; + } + +#clocks_container { + display: flex; + justify-content: space-evenly; + flex-wrap: wrap; + .time-info { + padding: 10px 30px; + margin: 2em 0; + min-height: 50px; + border: 1px solid #dddddd; + border-radius: 10px; + background-color: transparent; + } +} +.clocks_container:not(:last-child) { + padding: 10px; + min-height: 50px; + border-bottom: 1px solid #9DA1AA; + background-color: transparent; +} +.clocks_container > p { + font-size: 20px; +} + +//button +:root { + --primary-light: #8abdff; + --primary: #6d5dfc; + --primary-dark: #5b0eeb; + --white: #FFFFFF; + --greyLight-1: #E4EBF5; + --greyLight-2: #c8d0e7; + --greyLight-3: #bec8e4; + --greyDark: #9baacf; +} +$shadow: .3rem .3rem .6rem var(--greyLight-2), +-.2rem -.2rem .5rem var(--white); +$inner-shadow: inset .2rem .2rem .5rem var(--greyLight-2), +inset -.2rem -.2rem .5rem var(--white); + +/* CLOCK */ +.clock { + grid-column: 2 / 3; + grid-row: 1 / 3; + width: 12rem; + height: 12rem; + justify-self: center; + box-shadow: $shadow; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + position: relative; + .hand { + position: absolute; + transform-origin: bottom; + bottom: 6rem; + border-radius: .2rem; + z-index: 200; + } + .hours { + width: .4rem; + height: 3.2rem; + background: var(--greyLight-3); + + } + .minutes { + width: .4rem; + height: 4.6rem; + background: var(--greyDark); + } + .seconds { + width: .2rem; + height: 5.2rem; + background: var(--primary); + } + .point { + position: absolute; + width: .8rem; + height: .8rem; + border-radius: 50%; + background: var(--primary); + z-index: 300; + } + .in-border { + width: 95%; + height: 95%; + border-radius: 50%; + display: flex; + position: relative; + box-shadow: $inner-shadow; + .center { + width: 60%; + height: 60%; + position: absolute; + box-shadow: inset 1px 1px 1px var(--greyLight-2), + inset -1px -1px 1px var(--white); + border-radius: 50%; + top: 20%; + left: 20%; + filter: blur(1px); + } + div.digit { + position: absolute; + inset: 1px; + text-align: center; + transform: rotate(calc(var(--i) * (360deg / 12))); + span { + display: inline-block; + font-size: 80%; + font-weight: 600; + transform: rotate(calc(var(--i) * (-360deg / 12))); + } + } + } +} +.night-clock { + background-color: black; + color: white; +} +.no_clocks_span { + font-size: 16px; + font-weight: 500; + color: #714b67; + text-align: center; + background-color: #f2f2f2; + padding: 10px; + border-radius: 5px; + display: inline-block; + margin-top: -17px; +} diff --git a/systray_world_clock/static/src/xml/systray_world_clock.xml b/systray_world_clock/static/src/xml/systray_world_clock.xml new file mode 100644 index 000000000..0ae66e4d8 --- /dev/null +++ b/systray_world_clock/static/src/xml/systray_world_clock.xml @@ -0,0 +1,105 @@ + + + + + + + + +
+ + + + + + +
+ + No clocks configured. Please add a clock + in the + settings. + +
+
+
+
+
+
+ + +
+
+ +

+ + +
+
+ +

+ +
+
+ + + + +
+
+ 1 +
+
+ 2 +
+
+ 3 +
+
+ 4 +
+
+ 5 +
+
+ 6 +
+
+ 7 +
+
+ 8 +
+
+ 9 +
+
+ 10 +
+
+ 11 +
+
+ 12 +
+
+
+
+
+
+ + diff --git a/systray_world_clock/views/systray_world_clock_config_views.xml b/systray_world_clock/views/systray_world_clock_config_views.xml new file mode 100644 index 000000000..a7dd7481e --- /dev/null +++ b/systray_world_clock/views/systray_world_clock_config_views.xml @@ -0,0 +1,15 @@ + + + + + systray.world.clock.config.view.tree + systray.world.clock.config + + + + + + + + +