diff --git a/pos_night_mode/README.rst b/pos_night_mode/README.rst new file mode 100755 index 000000000..1b4b13adf --- /dev/null +++ b/pos_night_mode/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS NIGHT MODE +============== +This module helps you to change the color theme of the Point of Sale module to dark mode. + +Configuration +============= +A button with a moon icon will be visible in the POS interface's Navbar. You can enable or disable dark mode by clicking on this icon. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, v3.0 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developers: (v16) Ramees Jaman KT, + (v17) Ajith V, + (v18) Aysha Shalin, + 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/pos_night_mode/__init__.py b/pos_night_mode/__init__.py new file mode 100755 index 000000000..e8834e6ac --- /dev/null +++ b/pos_night_mode/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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/pos_night_mode/__manifest__.py b/pos_night_mode/__manifest__.py new file mode 100755 index 000000000..f2e09f9ab --- /dev/null +++ b/pos_night_mode/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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': 'POS Night Mode Theme', + 'version': '18.0.1.0.0', + 'category': 'Themes/Backend', + 'summary': """This module helps you to change the color theme of the + Point of Sale module to dark.""", + 'description':"""This module facilitates the transformation of color theme + of the Point of Sale module to dark mode for enhanced visual comfort and + aesthetics.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'point_of_sale'], + 'assets': { + 'point_of_sale._assets_pos': [ + 'pos_night_mode/static/src/js/**/*.js', + 'pos_night_mode/static/src/xml/button.xml', + 'pos_night_mode/static/src/scss/theme_style.scss' + ], + }, + 'images': [ + 'static/description/banner-1.png', + 'static/description/banner-2.png', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_night_mode/doc/RELEASE_NOTES.md b/pos_night_mode/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..1d50ab034 --- /dev/null +++ b/pos_night_mode/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 24.10.2024 +#### Version 18.0.1.0.0 +##### ADD +- Initial commit POS Night Mode Theme diff --git a/pos_night_mode/models/__init__.py b/pos_night_mode/models/__init__.py new file mode 100755 index 000000000..ce2200c55 --- /dev/null +++ b/pos_night_mode/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 res_users diff --git a/pos_night_mode/models/res_users.py b/pos_night_mode/models/res_users.py new file mode 100755 index 000000000..3eed0f500 --- /dev/null +++ b/pos_night_mode/models/res_users.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 api, fields, models + + +class Users(models.Model): + """ Inherit the res.Users model and add a new field """ + _inherit = 'res.users' + + """ Theme Config for night mode """ + mode_check = fields.Boolean(string="Active", + help="Enable / Disable checkbox") + + @api.model + def get_active(self): + """ Get the value of the mode_check field """ + return self.env.user.mode_check + + @api.model + def set_active(self): + """ Set up the mode_check value """ + self.env.user.mode_check = True + return self.env.user.mode_check + + @api.model + def set_deactivate(self): + """ Deactivating the value of mode check field """ + self.env.user.mode_check = False + return self.env.user.mode_check diff --git a/pos_night_mode/static/description/assets/cybro-icon.png b/pos_night_mode/static/description/assets/cybro-icon.png new file mode 100755 index 000000000..06e73e11d Binary files /dev/null and b/pos_night_mode/static/description/assets/cybro-icon.png differ diff --git a/pos_night_mode/static/description/assets/cybro-odoo.png b/pos_night_mode/static/description/assets/cybro-odoo.png new file mode 100755 index 000000000..ed02e07a4 Binary files /dev/null and b/pos_night_mode/static/description/assets/cybro-odoo.png differ diff --git a/pos_night_mode/static/description/assets/hero.gif b/pos_night_mode/static/description/assets/hero.gif new file mode 100755 index 000000000..94dde73a6 Binary files /dev/null and b/pos_night_mode/static/description/assets/hero.gif differ diff --git a/pos_night_mode/static/description/assets/icons/check.png b/pos_night_mode/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/check.png differ diff --git a/pos_night_mode/static/description/assets/icons/chevron.png b/pos_night_mode/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/chevron.png differ diff --git a/pos_night_mode/static/description/assets/icons/cogs.png b/pos_night_mode/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/cogs.png differ diff --git a/pos_night_mode/static/description/assets/icons/consultation.png b/pos_night_mode/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/consultation.png differ diff --git a/pos_night_mode/static/description/assets/icons/down.svg b/pos_night_mode/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/pos_night_mode/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pos_night_mode/static/description/assets/icons/ecom-black.png b/pos_night_mode/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/ecom-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/education-black.png b/pos_night_mode/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/education-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/faq.png b/pos_night_mode/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/faq.png differ diff --git a/pos_night_mode/static/description/assets/icons/feature.png b/pos_night_mode/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/feature.png differ diff --git a/pos_night_mode/static/description/assets/icons/hotel-black.png b/pos_night_mode/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/hotel-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/license.png b/pos_night_mode/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/license.png differ diff --git a/pos_night_mode/static/description/assets/icons/lifebuoy.png b/pos_night_mode/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_night_mode/static/description/assets/icons/manufacturing-black.png b/pos_night_mode/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/pos-black.png b/pos_night_mode/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/pos-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/puzzle.png b/pos_night_mode/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/puzzle.png differ diff --git a/pos_night_mode/static/description/assets/icons/restaurant-black.png b/pos_night_mode/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/screenshot.png b/pos_night_mode/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/screenshot.png differ diff --git a/pos_night_mode/static/description/assets/icons/service-black.png b/pos_night_mode/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/service-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/support.png b/pos_night_mode/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/support.png differ diff --git a/pos_night_mode/static/description/assets/icons/test-1 - Copy.png b/pos_night_mode/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/test-1 - Copy.png differ diff --git a/pos_night_mode/static/description/assets/icons/test-2.png b/pos_night_mode/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..08022c474 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/test-2.png differ diff --git a/pos_night_mode/static/description/assets/icons/trading-black.png b/pos_night_mode/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/trading-black.png differ diff --git a/pos_night_mode/static/description/assets/icons/training.png b/pos_night_mode/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/training.png differ diff --git a/pos_night_mode/static/description/assets/icons/update.png b/pos_night_mode/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/update.png differ diff --git a/pos_night_mode/static/description/assets/icons/user.png b/pos_night_mode/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/user.png differ diff --git a/pos_night_mode/static/description/assets/icons/video.png b/pos_night_mode/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/video.png differ diff --git a/pos_night_mode/static/description/assets/icons/whatsapp.png b/pos_night_mode/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/whatsapp.png differ diff --git a/pos_night_mode/static/description/assets/icons/wrench.png b/pos_night_mode/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/pos_night_mode/static/description/assets/icons/wrench.png differ diff --git a/pos_night_mode/static/description/assets/night_mode_v16-.png b/pos_night_mode/static/description/assets/night_mode_v16-.png new file mode 100755 index 000000000..dc448b538 Binary files /dev/null and b/pos_night_mode/static/description/assets/night_mode_v16-.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/all_orders.png b/pos_night_mode/static/description/assets/screenshots/all_orders.png new file mode 100755 index 000000000..b3a066885 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/all_orders.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/customer_note.png b/pos_night_mode/static/description/assets/screenshots/customer_note.png new file mode 100755 index 000000000..515db6386 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/customer_note.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/customer_screen.png b/pos_night_mode/static/description/assets/screenshots/customer_screen.png new file mode 100755 index 000000000..ef11f0d7f Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/customer_screen.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/img.png b/pos_night_mode/static/description/assets/screenshots/img.png new file mode 100644 index 000000000..814b90b02 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/img.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/main.png b/pos_night_mode/static/description/assets/screenshots/main.png new file mode 100755 index 000000000..e4e7e6b65 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/main.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/orders.png b/pos_night_mode/static/description/assets/screenshots/orders.png new file mode 100755 index 000000000..a826e70a0 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/orders.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/payment_screen.png b/pos_night_mode/static/description/assets/screenshots/payment_screen.png new file mode 100755 index 000000000..7032c2ab4 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/payment_screen.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/product_info.png b/pos_night_mode/static/description/assets/screenshots/product_info.png new file mode 100755 index 000000000..15b766f93 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/product_info.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/reciept_screen.png b/pos_night_mode/static/description/assets/screenshots/reciept_screen.png new file mode 100755 index 000000000..092477216 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/reciept_screen.png differ diff --git a/pos_night_mode/static/description/assets/y18.jpg b/pos_night_mode/static/description/assets/y18.jpg new file mode 100755 index 000000000..eea1714f2 Binary files /dev/null and b/pos_night_mode/static/description/assets/y18.jpg differ diff --git a/pos_night_mode/static/description/banner-1.png b/pos_night_mode/static/description/banner-1.png new file mode 100644 index 000000000..554b61597 Binary files /dev/null and b/pos_night_mode/static/description/banner-1.png differ diff --git a/pos_night_mode/static/description/banner-2.png b/pos_night_mode/static/description/banner-2.png new file mode 100644 index 000000000..80f3c6cd5 Binary files /dev/null and b/pos_night_mode/static/description/banner-2.png differ diff --git a/pos_night_mode/static/description/icon.png b/pos_night_mode/static/description/icon.png new file mode 100644 index 000000000..481d14cad Binary files /dev/null and b/pos_night_mode/static/description/icon.png differ diff --git a/pos_night_mode/static/description/img/1.png b/pos_night_mode/static/description/img/1.png new file mode 100644 index 000000000..814b90b02 Binary files /dev/null and b/pos_night_mode/static/description/img/1.png differ diff --git a/pos_night_mode/static/description/img/2.png b/pos_night_mode/static/description/img/2.png new file mode 100644 index 000000000..5f44680b4 Binary files /dev/null and b/pos_night_mode/static/description/img/2.png differ diff --git a/pos_night_mode/static/description/img/3.png b/pos_night_mode/static/description/img/3.png new file mode 100644 index 000000000..0c42a5162 Binary files /dev/null and b/pos_night_mode/static/description/img/3.png differ diff --git a/pos_night_mode/static/description/img/4.png b/pos_night_mode/static/description/img/4.png new file mode 100644 index 000000000..68c638879 Binary files /dev/null and b/pos_night_mode/static/description/img/4.png differ diff --git a/pos_night_mode/static/description/img/5.png b/pos_night_mode/static/description/img/5.png new file mode 100644 index 000000000..b0cc16c1f Binary files /dev/null and b/pos_night_mode/static/description/img/5.png differ diff --git a/pos_night_mode/static/description/img/6.png b/pos_night_mode/static/description/img/6.png new file mode 100644 index 000000000..fd3d4f77b Binary files /dev/null and b/pos_night_mode/static/description/img/6.png differ diff --git a/pos_night_mode/static/description/img/7.png b/pos_night_mode/static/description/img/7.png new file mode 100644 index 000000000..3805eb729 Binary files /dev/null and b/pos_night_mode/static/description/img/7.png differ diff --git a/pos_night_mode/static/description/img/8.png b/pos_night_mode/static/description/img/8.png new file mode 100644 index 000000000..c7e37ff52 Binary files /dev/null and b/pos_night_mode/static/description/img/8.png differ diff --git a/pos_night_mode/static/description/img/9.png b/pos_night_mode/static/description/img/9.png new file mode 100644 index 000000000..614c9173f Binary files /dev/null and b/pos_night_mode/static/description/img/9.png differ diff --git a/pos_night_mode/static/description/img/arrows-repeat.svg b/pos_night_mode/static/description/img/arrows-repeat.svg new file mode 100644 index 000000000..94fb8f7f9 --- /dev/null +++ b/pos_night_mode/static/description/img/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/banner-bg-1.svg b/pos_night_mode/static/description/img/banner-bg-1.svg new file mode 100644 index 000000000..7af9bab87 --- /dev/null +++ b/pos_night_mode/static/description/img/banner-bg-1.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/banner.svg b/pos_night_mode/static/description/img/banner.svg new file mode 100644 index 000000000..3d4ed7a4a --- /dev/null +++ b/pos_night_mode/static/description/img/banner.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/check.svg b/pos_night_mode/static/description/img/check.svg new file mode 100644 index 000000000..8bc79333d --- /dev/null +++ b/pos_night_mode/static/description/img/check.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/feature-star.svg b/pos_night_mode/static/description/img/feature-star.svg new file mode 100644 index 000000000..a913270e8 --- /dev/null +++ b/pos_night_mode/static/description/img/feature-star.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/gear.svg b/pos_night_mode/static/description/img/gear.svg new file mode 100644 index 000000000..ce383059d --- /dev/null +++ b/pos_night_mode/static/description/img/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/hero.gif b/pos_night_mode/static/description/img/hero.gif new file mode 100644 index 000000000..8a8bd8bbd Binary files /dev/null and b/pos_night_mode/static/description/img/hero.gif differ diff --git a/pos_night_mode/static/description/img/hire-odoo.svg b/pos_night_mode/static/description/img/hire-odoo.svg new file mode 100644 index 000000000..9cfec4e44 --- /dev/null +++ b/pos_night_mode/static/description/img/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/life-ring-icon.svg b/pos_night_mode/static/description/img/life-ring-icon.svg new file mode 100644 index 000000000..b6c797ba1 --- /dev/null +++ b/pos_night_mode/static/description/img/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/main_banner.png b/pos_night_mode/static/description/img/main_banner.png new file mode 100644 index 000000000..554b61597 Binary files /dev/null and b/pos_night_mode/static/description/img/main_banner.png differ diff --git a/pos_night_mode/static/description/img/main_banner2.png b/pos_night_mode/static/description/img/main_banner2.png new file mode 100644 index 000000000..80f3c6cd5 Binary files /dev/null and b/pos_night_mode/static/description/img/main_banner2.png differ diff --git a/pos_night_mode/static/description/img/odoo-consultancy.svg b/pos_night_mode/static/description/img/odoo-consultancy.svg new file mode 100644 index 000000000..c2c27e608 --- /dev/null +++ b/pos_night_mode/static/description/img/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/pos_night_mode/static/description/img/odoo-licencing.svg b/pos_night_mode/static/description/img/odoo-licencing.svg new file mode 100644 index 000000000..8a520b40f --- /dev/null +++ b/pos_night_mode/static/description/img/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_night_mode/static/description/img/patter.svg b/pos_night_mode/static/description/img/patter.svg new file mode 100644 index 000000000..9b7b0d7cd --- /dev/null +++ b/pos_night_mode/static/description/img/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_night_mode/static/description/img/pos_night_mode.png b/pos_night_mode/static/description/img/pos_night_mode.png new file mode 100644 index 000000000..1f7a631c9 Binary files /dev/null and b/pos_night_mode/static/description/img/pos_night_mode.png differ diff --git a/pos_night_mode/static/description/img/puzzle-piece-icon.svg b/pos_night_mode/static/description/img/puzzle-piece-icon.svg new file mode 100644 index 000000000..ab5e56fa7 --- /dev/null +++ b/pos_night_mode/static/description/img/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/screenshot-1.svg b/pos_night_mode/static/description/img/screenshot-1.svg new file mode 100644 index 000000000..72eeb921b --- /dev/null +++ b/pos_night_mode/static/description/img/screenshot-1.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/screenshot-2.png b/pos_night_mode/static/description/img/screenshot-2.png new file mode 100644 index 000000000..e13b876da Binary files /dev/null and b/pos_night_mode/static/description/img/screenshot-2.png differ diff --git a/pos_night_mode/static/description/img/screenshot-3.png b/pos_night_mode/static/description/img/screenshot-3.png new file mode 100644 index 000000000..be1acdfd5 Binary files /dev/null and b/pos_night_mode/static/description/img/screenshot-3.png differ diff --git a/pos_night_mode/static/description/img/screenshot-4.png b/pos_night_mode/static/description/img/screenshot-4.png new file mode 100644 index 000000000..1d01e11fc Binary files /dev/null and b/pos_night_mode/static/description/img/screenshot-4.png differ diff --git a/pos_night_mode/static/description/img/screenshot-5.svg b/pos_night_mode/static/description/img/screenshot-5.svg new file mode 100644 index 000000000..923e355bf --- /dev/null +++ b/pos_night_mode/static/description/img/screenshot-5.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_night_mode/static/description/img/translate.svg b/pos_night_mode/static/description/img/translate.svg new file mode 100644 index 000000000..eea729542 --- /dev/null +++ b/pos_night_mode/static/description/img/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_night_mode/static/description/img/wrench-icon.svg b/pos_night_mode/static/description/img/wrench-icon.svg new file mode 100644 index 000000000..4e0ce1d01 --- /dev/null +++ b/pos_night_mode/static/description/img/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pos_night_mode/static/description/index.html b/pos_night_mode/static/description/index.html new file mode 100644 index 000000000..81d85e743 --- /dev/null +++ b/pos_night_mode/static/description/index.html @@ -0,0 +1,865 @@ + + + + + + + app index + + + + + + + + + + +
+ + + +
+
+
+
+ +
+
+
+
+ +
+ Supports: +
+ Community +
+
+ Enterprise +
+
+
+
+
+ Availability: +
+ Odoo Online +
+
+ Odoo.sh +
+
+ On Premise +
+
+
+
+
+
+ + + +
+
+ +
+
+ + + + + + +
+
+

Enjoy Dark Mode in Point of Sale Module

+ +

Switch to Night Mode with just one tap for a sleek, eye-friendly experience!

+
+ + +
+
+ + Order Screen +
+
+ + Payment Screen +
+
+ + Receipt Screen +
+
+ + Popups +
+
+ + Product Info +
+
+ + Orders +
+
+ + Customer List Screen +
+
+
+ + + + +
+
+
+
+
+

Our Features

+

info includes 300+ elements that you may need to create website without + external plugins.

+
+
+
+
+
+
+
+ +

Easy to Use.

+

Easy to enable or disable night mode.

+
+ +
+
+
+
+
+ +

Switch to Night Mode with just One Tap.

+

Simply toggle the button to enable or disable.

+
+
+
+
+
+
+ +

Sleek, Eye-friendly Experience!

+

A dark background with light text reduces glare and is easier on the eyes, especially in dim light.

+
+ +
+
+
+
+
+ +

Aesthetic Appeal

+

Visually Appealing and offers a sleek and modern look.

+
+
+
+
+
+
+ +

Longer Usage

+

Employees may be able to work longer without discomfort, leading to increased efficiency and productivity.

+
+
+
+
+
+
+ +

Longer Display Life

+

Potentially helps to extend the lifespan of the display, as less power is needed to illuminate the pixels.

+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ Order Screen +
+ +
+
+
+ Payment Screen +
+ +
+
+
+ Receipt Screen +
+ +
+
+
+ Popups +
+ +
+
+
+ Product Info +
+ +
+
+
+ Orders +
+ +
+
+
+ Customer List Screen +
+ +
+
+
+
+ +
+
+
+
+
+
+
+ HIGHLIGHT +

Dark Mode Popup

+

Popups in Dark Mode

+
+
+ Grid item +
+ +
+
+ +
+
+
+ HIGHLIGHT +

Enable Night Mode with Just One Tap

+
+
+ Grid item +
+ +
+
+
+ + + +
+
+
+
+ HIGHLIGHT +

Disable Night Mode

+

+

+
+ Grid item +
+ +
+
+ +
+
+
+ HIGHLIGHT +

Product Info

+
+
+ Grid item +
+ +
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/pos_night_mode/static/src/js/Navbar_inherit.js b/pos_night_mode/static/src/js/Navbar_inherit.js new file mode 100755 index 000000000..57b1d2e8a --- /dev/null +++ b/pos_night_mode/static/src/js/Navbar_inherit.js @@ -0,0 +1,157 @@ +/** @odoo-module **/ +import { Navbar } from "@point_of_sale/app/navbar/navbar"; +import { rpc } from '@web/core/network/rpc'; +import { patch } from "@web/core/utils/patch"; +import { useService } from "@web/core/utils/hooks"; +import { useRef } from "@odoo/owl"; + +// Includes a function in navbar in pos +patch(Navbar.prototype, { + setup() { + super.setup() + this.orm = useService("orm"); + var self = this; + this.root = useRef("root") + this.toggle = useRef("toggle") + this.isProcessingClick = false; + + rpc('/web/dataset/call_kw',{ + model:'res.users', + method:'get_active', + args:[], + kwargs:{}, + }).then((res)=>{ + if(res){ + this.root.el.classList.remove("fa", "fa-moon-o", "moon-color"); + this.root.el.classList.add("fa", "fa-sun-o", "sun-color"); + self._OnNightTrue(); + } + else{ + this.root.el.classList.remove("fa", "fa-sun-o", "sun-color"); + this.root.el.classList.add("fa", "fa-moon-o", "moon-color"); + } + }); + }, + //Added a function for click button change the pos color to black + async OnClickMoon(){ + var self = this; + if (this.isProcessingClick) return; // If already processing, ignore the click + this.isProcessingClick = true; + var buttonToggle = this.root.el; + var isPressed = buttonToggle.getAttribute('aria-pressed') === "true"; + console.log('pressed', isPressed) + buttonToggle.setAttribute('aria-pressed', !isPressed); + try{ + if(isPressed){ + console.log("moon") + this.root.el.classList.remove("fa", "fa-moon-o", "moon-color") + this.root.el.classList.add("fa", "fa-sun-o", "sun-color") + console.log("moon", this.root.el.classList) + await rpc('/web/dataset/call_kw',{ + model:'res.users',method: 'set_active', + args:[],kwargs:{}, + }).then((response) =>{ + console.log("on night") + self._OnNightTrue() + }); + } + else{ + console.log("false") + this.root.el.classList.remove("fa", "fa-sun-o", "sun-color") + this.root.el.classList.add("fa", "fa-moon-o", "moon-color") + console.log("sun", this.root.el.classList) + await rpc('/web/dataset/call_kw',{ + model: 'res.users',method: 'set_deactivate', + args:[], kwargs:{}, + }).then((response) =>{ + const styles = document.querySelectorAll('style'); + styles.forEach(style => style.remove()); + }); + } + } finally { + this.isProcessingClick = false; // Reset the flag once processing is complete + } + }, + //Added a function for click button change the pos color to black + async _OnNightTrue(){ + var pos_element = document.querySelector('.pos') + var pos_product_list_modifier = document.createElement('style') + pos_product_list_modifier.innerHTML = '.pos{color:white;}'+'.pos .product { background-color:#3c3f41 !important;border:'+ + 'thin solid white;border-radius: 5px;}.pos .product .product-img img {background-image:'+ + 'linear-gradient(to bottom,white,#3c3f41) !important;}'+ + '.pos .product-list{background-color:#3c3f41 !important;}'+ + '.pos .product .price-tag {color:#F45976 !important;}'+ + '.pos .product-content .product-name{color:white}'+ + '.pos .order{background-color:#3c3f41}'+ + '.pos .rightpane{background-color:#3c3f41}'+ + '.pos .rightpane-header{background-color:#3c3f41;}'+ + '.pos .pos-content .product-screen .leftpane .pads .control-buttons .fw-bolder{color:white;}'+ + '.pos .breadcrumb-button{color:white}'+ + '.pos .form-control{color:black}'+ + '.pos .category-simple-button{background-color:#3c3f41 !important;}'+ + '.pos .sb-product .pos-search-bar{background-color:#3c3f41 !important;}'+ + '.pos .pos-search-bar input, .pos .partner-list'+ + '.pos-search-bar input{color:#880808}'+ + '.pos .orderline .selected{background-color:darkgray !important;}'+ + '.pos .info-list{color:#B3B7BF !important}'+ + '.pos .info-list em{color:#B3B7BF !important}'+ + '.pos .control-button{background-color:#3c3f41 !important;}'+ + '.pos .numpad button{background-color:#3c3f41;color:white;}'+ + '.pos .numpad button:hover{background-color:#f45976 !important;}'+ + '.pos .button.validation:hover{background-color:#f45976 !important;}'+ + '.pos .button.next.validation{background-color:#3c3f41;color:white;}'+ + '.pos .o_payment_successful h1{color:white;}'+ '.pos .top-content-center h1{color:white;}'+ + '.pos .pay-order-button{background-color:#3c3f41 !important;}'+ + '.pos .cc .button{background-color:#3c3f41;color:white;}'+ + '.pos .actionpad .button:hover{background-color:#f45976 !important;}'+ + '.pos .control-button:hover{background-color:#f45976 !important;}'+ + '.pos .modal-dialog .popup{background-color:#1e1f20 !important;}'+ + '.pos .popup .button{background:#8F3536;color: black !important};'+ + '.ticket-screen .controls button {background-color:white;color:black;}'+ + '.ticket-screen .pos-search-bar .filter{color:black}'+ + '.ticket-screen .pos-search-bar .filter .options{border-radius:5px}'+ + '.pos .order-container{background-color:#3c3f41 !important}'+ + '.pos .order-summary{background-color:#3c3f41 !important}'+ + '.pos .order-summary .subentry {color:white !important}'+ + '.pos .pos-content .product-screen .leftpane .pads .control-button .fa-undo{color:white !important}'+ + '.pos .partner-list{color:black;}'+ + '.pos .partner-list .table-hover thead > tr{background-color:#3c3f41;color:white}'+ + '.pos .partner-list tr.partner-line:hover{background-color:#f45976}'+ + '.pos .partner-list tr.partner-line.highlight{background-color:#017e84}'+ + '.screen .screen-content{background-color:#e0e2e6}'+ + '.pos .partner-list .ms-auto i{color:black;}'+ + '.pos .partner-list .ms-auto input{color:#2a2b2d;}'+ + '.screen .top-content .button.highlight{background-color:#017e84 !important;border-color:#3c3f41 !important;}'+ + '.screen .top-content{background-color:#3c3f41}'+ + '.pos .close-pos-popup header{background-color:rgb(56, 57, 58)}'+ + '.pos .popup .title{background-color:rgb(56, 57, 58)}'+ + '.pos .close-pos-popup .closing-notes{background-color:#c1c3c6}'+ + '.pos .opening-cash-control .opening-cash-notes{background-color:#c1c3c6}'+ + '.payment-screen .main-content{background:#3c3f41}'+ + '.paymentmethods .button{background:#3c3f41}'+ + '.pos .paymentline{background:#3c3f41}'+ + '.pos .paymentline.selected{background:#707375}'+ + '.pos .screen .button.next:not(.highlight){background:#e6e3e2;color:#017e84;}'+ + '.receipt-screen .default-view{background:#3c3f41}'+ + '.receipt-screen .default-view .actions .send-email input{background:#666668;color:white;}'+ + '.receipt-screen .default-view .actions .buttons .button{background:#666668}'+ + '.receipt-screen .default-view .actions .send-email button.send{background:#017e84;color:black}'+ + '.pos .pos-receipt-container > div{color:black}'+ + '.pos .popup.popup-error .button{background:#8F3536}'+ + '.pos .orders .order-row:nth-child(n){background:#3c3f41}'+ + '.pos .orders .order-row.highlight{background:#017e84}'+ + '.pos .orders .order-row:hover{background:#f45976;}'+ + '.pos .pos-content .product-screen .leftpane .bg-100:{background-color:#c1c3c6 !important}'+ + '.payment-screen .payment-buttons .button{background:#3c3f41;color:white;}'+ + '.payment-screen .payment-buttons .button:hover{background:#f45976}'+ '.paymentmethod{color:white;}'+ + '.o_notification_body{color:black;}'+ + '.modal-title{color:white;}'+ '.modal-header{color:white;}'+ + '.modal-content{background:#3c3f41; color:black;}'+ '.modal-body {color:white;}'+ + '.modal-body .button:hover{background:#f45976;}'+ '.modal-header .btn{background:#8F3536; color:white;}'+ + '.modal-footer .btn{background:#8F3536; color:white;}'+ + '.search-more-button .btn{background:#e6e3e2; color:black;}'+ + '.pos-receipt .order-container .orderline {background-color:white;}'+ + '.payment-infos{background-color:#3c3f41;}'; + pos_element.parentNode.insertBefore(pos_product_list_modifier, pos_element); + }, +}); diff --git a/pos_night_mode/static/src/scss/theme_style.scss b/pos_night_mode/static/src/scss/theme_style.scss new file mode 100755 index 000000000..e5c5594d9 --- /dev/null +++ b/pos_night_mode/static/src/scss/theme_style.scss @@ -0,0 +1,13 @@ +.fa-sun-o{ + color:#e8a214; + font-size: 130% !important; + background:white; +} +.fa-moon-o{ + font-size: 130% !important; + color:black; +} +#button_toggle{ + border: none; + background: none; +} diff --git a/pos_night_mode/static/src/xml/button.xml b/pos_night_mode/static/src/xml/button.xml new file mode 100755 index 000000000..9c71c68be --- /dev/null +++ b/pos_night_mode/static/src/xml/button.xml @@ -0,0 +1,15 @@ + \ No newline at end of file