diff --git a/pos_night_mode/README.rst b/pos_night_mode/README.rst new file mode 100644 index 000000000..1581df39e --- /dev/null +++ b/pos_night_mode/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS NIGHT MODE +============== +This module helps you change the color theme of the pose to dark. + +Configuration +============= +* No additional configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (V15) Bhagyadev KP +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 100644 index 000000000..2d5d39207 --- /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: Bhagyadev KP (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 100644 index 000000000..0cf0010e6 --- /dev/null +++ b/pos_night_mode/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Bhagyadev KP (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': '15.0.1.0.0', + "category": "Themes/Backend", + 'summary': 'POS night mode theme', + 'description': """This module helps you change the color theme of the pose to dark""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['point_of_sale'], + 'assets': { + 'point_of_sale.assets': [ + 'pos_night_mode/static/src/js/**/*.js', + 'pos_night_mode/static/src/css/theme_style.css' + ], + 'web.assets_qweb': [ + 'pos_night_mode/static/src/xml/button.xml', + ], + }, + 'images': [ + 'static/description/banner.png', + 'static/description/theme_screenshot.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 100644 index 000000000..6583228e2 --- /dev/null +++ b/pos_night_mode/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 10.09.2024 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit POS Night Mode diff --git a/pos_night_mode/models/__init__.py b/pos_night_mode/models/__init__.py new file mode 100644 index 000000000..4b9070775 --- /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: Bhagyadev KP (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 theme_config diff --git a/pos_night_mode/models/theme_config.py b/pos_night_mode/models/theme_config.py new file mode 100644 index 000000000..13cb30ad7 --- /dev/null +++ b/pos_night_mode/models/theme_config.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Bhagyadev KP (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 ResUsers(models.Model): + _inherit = 'res.users' + + """ Theme Config for night mode """ + mode_check = fields.Boolean(string="Active", help="Enable / Disable checkbox") + + @api.model + def get_active(self): + """ + Retrieve the current user's `mode_check` status. + + :return: Boolean value representing the `mode_check` field of the current user. + """ + return self.env['res.users'].search([('id', '=', self.env.user.id)]).mode_check + + @api.model + def set_active(self): + """ + Activate the `mode_check` status for the current user by setting it to True. + + :return: Boolean value representing the updated `mode_check` status of the current user. + """ + self.env['res.users'].search([('id', '=', self.env.user.id)]).write({'mode_check': True}) + return self.env['res.users'].search([('id', '=', self.env.user.id)]).mode_check + + @api.model + def set_deactivate(self): + """ + Deactivate the `mode_check` status for the current user by setting it to False. + + :return: Boolean value representing the updated `mode_check` status of the current user. + """ + self.env['res.users'].search([('id', '=', self.env.user.id)]).write({'mode_check': False}) + return self.env['res.users'].search([('id', '=', self.env.user.id)]).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 100644 index 000000000..412e9bd83 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/modules/l1.png b/pos_night_mode/static/description/assets/modules/l1.png new file mode 100755 index 000000000..9c9d6cf26 Binary files /dev/null and b/pos_night_mode/static/description/assets/modules/l1.png differ diff --git a/pos_night_mode/static/description/assets/modules/l2.png b/pos_night_mode/static/description/assets/modules/l2.png new file mode 100755 index 000000000..960ea72e2 Binary files /dev/null and b/pos_night_mode/static/description/assets/modules/l2.png differ diff --git a/pos_night_mode/static/description/assets/modules/l3.png b/pos_night_mode/static/description/assets/modules/l3.png new file mode 100755 index 000000000..d5f1ed491 Binary files /dev/null and b/pos_night_mode/static/description/assets/modules/l3.png differ diff --git a/pos_night_mode/static/description/assets/modules/l4.png b/pos_night_mode/static/description/assets/modules/l4.png new file mode 100755 index 000000000..f9f5e5657 Binary files /dev/null and b/pos_night_mode/static/description/assets/modules/l4.png differ diff --git a/pos_night_mode/static/description/assets/modules/l5.png b/pos_night_mode/static/description/assets/modules/l5.png new file mode 100755 index 000000000..55cdda774 Binary files /dev/null and b/pos_night_mode/static/description/assets/modules/l5.png differ diff --git a/pos_night_mode/static/description/assets/modules/l6.png b/pos_night_mode/static/description/assets/modules/l6.png new file mode 100755 index 000000000..1ebe3ae10 Binary files /dev/null and b/pos_night_mode/static/description/assets/modules/l6.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/1.png b/pos_night_mode/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..c23371106 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/1.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/2.png b/pos_night_mode/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..169749688 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/2.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/3.png b/pos_night_mode/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..8bec29730 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/3.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/4.png b/pos_night_mode/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..92f0a4438 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/4.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/5.png b/pos_night_mode/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..d24fe5257 Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/5.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/6.png b/pos_night_mode/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..50867d4ba Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/6.png differ diff --git a/pos_night_mode/static/description/assets/screenshots/7.png b/pos_night_mode/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..051e7565b Binary files /dev/null and b/pos_night_mode/static/description/assets/screenshots/7.png differ diff --git a/pos_night_mode/static/description/assets/theme_screenshot.png b/pos_night_mode/static/description/assets/theme_screenshot.png new file mode 100644 index 000000000..6b6e79126 Binary files /dev/null and b/pos_night_mode/static/description/assets/theme_screenshot.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.png b/pos_night_mode/static/description/banner.png new file mode 100644 index 000000000..6b6e79126 Binary files /dev/null and b/pos_night_mode/static/description/banner.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..1f9a93c56 Binary files /dev/null and b/pos_night_mode/static/description/icon.png differ diff --git a/pos_night_mode/static/description/index.html b/pos_night_mode/static/description/index.html new file mode 100755 index 000000000..e0d7ef4cc --- /dev/null +++ b/pos_night_mode/static/description/index.html @@ -0,0 +1,650 @@ + +
+
+
+

+ POS Night Mode Theme +

+

+ Pos Night Mode Theme Odoo V15.

+
+ + +
+

+ The app enables a user-friendly basic night mode theme for Odoo 15 + POS community and enterprise editions. + Enabling the Night mode theme in Odoo is very simple. + To enable, Click on the night mode icon displayed in the Chrome + section of POS App.To disable, Click again + the same icon. +

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

+ KEY Highlights +

+ + +
+
+
+
+ +
+
+

+ Easy to enable + / disable night mode.

+

You can + enable this theme by clicking the toggle button in + Chrome.

+
+
+
+
+
+
+ +
+
+

+ Night Mode For + All Pos Screens

+

The + theme will switch all Pos screens to night mode.

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

+ Screenshots +

+
+
+

+ Order Screen

+
+
+ +
+
+

+ Payment Screen

+
+
+ +
+
+

+ Receipt Screen

+
+
+ +
+
+

+ Popups

+
+
+ +
+
+

+ Product Info

+
+
+ +
+
+

+ Orders

+
+
+ +
+
+

+ Customer List Screen

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

Related Modules

+

Explore our related modules

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

+ Our Services +

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

Our Industries

+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Support

+

Need help? Get in touch. +

+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get + in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 + 86068 + 27707

+
+
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + \ No newline at end of file diff --git a/pos_night_mode/static/description/theme_screenshot.png b/pos_night_mode/static/description/theme_screenshot.png new file mode 100644 index 000000000..6b6e79126 Binary files /dev/null and b/pos_night_mode/static/description/theme_screenshot.png differ diff --git a/pos_night_mode/static/src/css/theme_style.css b/pos_night_mode/static/src/css/theme_style.css new file mode 100644 index 000000000..3c50ae2b3 --- /dev/null +++ b/pos_night_mode/static/src/css/theme_style.css @@ -0,0 +1,12 @@ +.fa-sun-o{ + color:#e8a214; + font-size: 130% !important; + background:#714b67; +} +.fa-moon-o{ + font-size: 130% !important; + color:black; +} + .d-none { + display: none; +} \ No newline at end of file diff --git a/pos_night_mode/static/src/js/chrome_inherit.js b/pos_night_mode/static/src/js/chrome_inherit.js new file mode 100644 index 000000000..9f22e11d1 --- /dev/null +++ b/pos_night_mode/static/src/js/chrome_inherit.js @@ -0,0 +1,130 @@ +odoo.define('pos_night_mode.pos_chrome', function (require) { + 'use strict'; +// Extending Chrom component + const Chrome = require('point_of_sale.Chrome'); + const Registries = require('point_of_sale.Registries'); + var rpc = require('web.rpc'); + const PosNightMod = (Chrome) => + class extends Chrome { + async start() { + this.night_mode = 'True' + var self = this; + await super.start(); + rpc.query({ + model: 'res.users', + method: 'get_active' + }).then(function(res){ + if(res){ + self._OnNightTrue() + } + }) + }; +// Clicking sun icon + OnClickSun(){ + var self = this; + rpc.query({ + model: 'res.users', + method: 'set_deactivate' + }).then(function(){ + $('style').remove() + }) + $("#fa-icon").addClass("d-none") + $("#fa-icon-moon").removeClass("d-none") + }; +// Clicking moon icon + OnClickMoon() { + var self = this; + rpc.query({ + model:'res.users', + method: 'set_active' + }).then(function(){ + self._OnNightTrue() + }) + $("#fa-icon").removeClass("d-none") + $("#fa-icon-moon").addClass("d-none") + }; +// Making nightmode in POS + async _OnNightTrue(){ //Added a function for click button change the pos color to black + 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-container{background-color:#3c3f41 !important;}'+ + '.pos .product .price-tag {color:#F45976 !important;}'+ + '.pos .product .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 .category-simple-button{background-color:#3c3f41 !important;}'+ + '.pos .sb-product .pos-search-bar{background-color:#3c3f41 !important;}'+ + '.pos .rightpane-header .pos-search-bar input, .pos .clientlist-screen'+ + '.pos-search-bar input{color:#adb7c1}'+ + '.pos .order .orderline .selected{background-color:darkgray !important}'+ + '.pos .order .orderline .info-list{color:#B3B7BF !important}'+ + '.pos .order .orderline .info-list em{color:#B3B7BF !important}'+ + '.pos .control-button{background-color:#3c3f41 !important;}'+ + '.pos .mode-button.selected-mode{background-color:#707375 !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 .actionpad .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: white !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 .client-window{color:black;}'+ + '.pos .clientlist-screen .client-list thead > tr{background-color:#3c3f41;color:white}'+ + '.pos .clientlist-screen tr.client-line:hover{background-color:#f45976}'+ + '.pos .client-line{color:white;background-color:black !important}'+ + '.pos .clientlist-screen{background-color:black !important}'+ + '.pos .payment-screen{background-color:black !important}'+ + '.pos .receipt-screen{background-color:black !important}'+ + '.pos .screen-content{background-color:black !important}'+ + '.pos .client-list tr.client-line.highlight{background-color:#017e84}'+ + '.screen .screen-content{background-color:#e0e2e6}'+ + '.pos .clientlist-screen .pos-search-bar i{color:black;}'+ + '.pos .clientlist-screen .pos-search-bar 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}'+ + '.modal-title{color:white;}'+ + '.paymentmethod{color:white;}'+ + '.pos-receipt .order-container .orderline {background-color:white;}'+ + '.payment-infos{background-color:#71639e;}' + ; + pos_element.parentNode.insertBefore(pos_product_list_modifier, pos_element); + } + }; + Registries.Component.extend(Chrome, PosNightMod); + return Chrome; +}); \ No newline at end of file diff --git a/pos_night_mode/static/src/xml/button.xml b/pos_night_mode/static/src/xml/button.xml new file mode 100644 index 000000000..0156a7ad5 --- /dev/null +++ b/pos_night_mode/static/src/xml/button.xml @@ -0,0 +1,11 @@ + \ No newline at end of file