diff --git a/point_of_sale_logo/README.rst b/point_of_sale_logo/README.rst new file mode 100755 index 000000000..5818f5ef7 --- /dev/null +++ b/point_of_sale_logo/README.rst @@ -0,0 +1,45 @@ +Point of Sale Logo v15 +====================== +This module helps you to set a logo for every point of sale. This will help you to +identify the point of sale easily. You can also see this logo in pos screen and pos receipt + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Jesni Banu @ cybrosys + Niyas Raphy @cybrosys + +Version 13: Nimisha Murali@cybrosys +Version 14: Jibin James @cybrosys +Version 15: Akshay CK @cybrosys +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/point_of_sale_logo/__init__.py b/point_of_sale_logo/__init__.py new file mode 100755 index 000000000..cea9edebf --- /dev/null +++ b/point_of_sale_logo/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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/point_of_sale_logo/__manifest__.py b/point_of_sale_logo/__manifest__.py new file mode 100755 index 000000000..3c369aa6b --- /dev/null +++ b/point_of_sale_logo/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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': 'Point of Sale Logo', + 'version': '15.0.1.0.0', + 'summary': """Logo For Every Point of Sale (Screen & Receipt)""", + 'description': """"This module helps you to set a logo for every point of sale. This will help you to + identify the point of sale easily. You can also see this logo in pos screen and pos receipt.""", + 'category': 'Point Of Sale', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'depends': ['base', 'point_of_sale'], + 'data': [ + 'views/pos_config_image_view.xml', + ], + 'assets': { + 'point_of_sale.assets': [ + 'point_of_sale_logo/static/src/js/pos_image_field.js', + 'point_of_sale_logo/static/src/js/pos_receipt_image.js', + ], + 'web.assets_qweb': [ + 'point_of_sale_logo/static/src/xml/pos_screen_image_view.xml', + 'point_of_sale_logo/static/src/xml/pos_ticket_view.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/point_of_sale_logo/doc/RELEASE_NOTES.md b/point_of_sale_logo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..6bf6d4655 --- /dev/null +++ b/point_of_sale_logo/doc/RELEASE_NOTES.md @@ -0,0 +1,9 @@ +## Module + +#### 5.12.2022 +#### Version 15.0.1.0.0 +#### ADD +Initial commit for Point of Sale Logo + + + diff --git a/point_of_sale_logo/models/__init__.py b/point_of_sale_logo/models/__init__.py new file mode 100755 index 000000000..27dd874c2 --- /dev/null +++ b/point_of_sale_logo/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-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 pos_config_image + diff --git a/point_of_sale_logo/models/pos_config_image.py b/point_of_sale_logo/models/pos_config_image.py new file mode 100755 index 000000000..ed42ba16a --- /dev/null +++ b/point_of_sale_logo/models/pos_config_image.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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 odoo import models, fields + + +class PosConfigImage(models.Model): + _inherit = 'pos.config' + + image = fields.Binary(string='Image') diff --git a/point_of_sale_logo/static/description/assets/icons/check.png b/point_of_sale_logo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/check.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/chevron.png b/point_of_sale_logo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/chevron.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/cogs.png b/point_of_sale_logo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/cogs.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/consultation.png b/point_of_sale_logo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/consultation.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/ecom-black.png b/point_of_sale_logo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/ecom-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/education-black.png b/point_of_sale_logo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/education-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/hotel-black.png b/point_of_sale_logo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/hotel-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/license.png b/point_of_sale_logo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/license.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/lifebuoy.png b/point_of_sale_logo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/lifebuoy.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/manufacturing-black.png b/point_of_sale_logo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/manufacturing-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/pos-black.png b/point_of_sale_logo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/pos-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/puzzle.png b/point_of_sale_logo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/puzzle.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/restaurant-black.png b/point_of_sale_logo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/restaurant-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/service-black.png b/point_of_sale_logo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/service-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/trading-black.png b/point_of_sale_logo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/trading-black.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/training.png b/point_of_sale_logo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/training.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/update.png b/point_of_sale_logo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/update.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/user.png b/point_of_sale_logo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/user.png differ diff --git a/point_of_sale_logo/static/description/assets/icons/wrench.png b/point_of_sale_logo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/point_of_sale_logo/static/description/assets/icons/wrench.png differ diff --git a/point_of_sale_logo/static/description/banner.png b/point_of_sale_logo/static/description/banner.png new file mode 100644 index 000000000..9d38a9e97 Binary files /dev/null and b/point_of_sale_logo/static/description/banner.png differ diff --git a/point_of_sale_logo/static/description/icon.png b/point_of_sale_logo/static/description/icon.png new file mode 100644 index 000000000..75dc44b4d Binary files /dev/null and b/point_of_sale_logo/static/description/icon.png differ diff --git a/point_of_sale_logo/static/description/images/checked.png b/point_of_sale_logo/static/description/images/checked.png new file mode 100644 index 000000000..e6c63d582 Binary files /dev/null and b/point_of_sale_logo/static/description/images/checked.png differ diff --git a/point_of_sale_logo/static/description/images/hero.png b/point_of_sale_logo/static/description/images/hero.png new file mode 100644 index 000000000..8cf6ddd39 Binary files /dev/null and b/point_of_sale_logo/static/description/images/hero.png differ diff --git a/point_of_sale_logo/static/description/images/logo.png b/point_of_sale_logo/static/description/images/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/point_of_sale_logo/static/description/images/logo.png differ diff --git a/point_of_sale_logo/static/description/images/modules/approval_image.png b/point_of_sale_logo/static/description/images/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/point_of_sale_logo/static/description/images/modules/approval_image.png differ diff --git a/point_of_sale_logo/static/description/images/modules/follow_image.png b/point_of_sale_logo/static/description/images/modules/follow_image.png new file mode 100644 index 000000000..16582ca06 Binary files /dev/null and b/point_of_sale_logo/static/description/images/modules/follow_image.png differ diff --git a/point_of_sale_logo/static/description/images/modules/mulitple-ref_image.png b/point_of_sale_logo/static/description/images/modules/mulitple-ref_image.png new file mode 100644 index 000000000..e0964f1e3 Binary files /dev/null and b/point_of_sale_logo/static/description/images/modules/mulitple-ref_image.png differ diff --git a/point_of_sale_logo/static/description/images/modules/pos_image.png b/point_of_sale_logo/static/description/images/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/point_of_sale_logo/static/description/images/modules/pos_image.png differ diff --git a/point_of_sale_logo/static/description/images/modules/pos_order_image.png b/point_of_sale_logo/static/description/images/modules/pos_order_image.png new file mode 100644 index 000000000..1217263a6 Binary files /dev/null and b/point_of_sale_logo/static/description/images/modules/pos_order_image.png differ diff --git a/point_of_sale_logo/static/description/images/modules/shopify_image.png b/point_of_sale_logo/static/description/images/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/point_of_sale_logo/static/description/images/modules/shopify_image.png differ diff --git a/point_of_sale_logo/static/description/images/pos-1.png b/point_of_sale_logo/static/description/images/pos-1.png new file mode 100644 index 000000000..6a00bf5b3 Binary files /dev/null and b/point_of_sale_logo/static/description/images/pos-1.png differ diff --git a/point_of_sale_logo/static/description/images/pos-2.png b/point_of_sale_logo/static/description/images/pos-2.png new file mode 100644 index 000000000..78025eba9 Binary files /dev/null and b/point_of_sale_logo/static/description/images/pos-2.png differ diff --git a/point_of_sale_logo/static/description/images/pos-3.png b/point_of_sale_logo/static/description/images/pos-3.png new file mode 100644 index 000000000..99d6f4f23 Binary files /dev/null and b/point_of_sale_logo/static/description/images/pos-3.png differ diff --git a/point_of_sale_logo/static/description/index.html b/point_of_sale_logo/static/description/index.html new file mode 100644 index 000000000..fe6cc0936 --- /dev/null +++ b/point_of_sale_logo/static/description/index.html @@ -0,0 +1,644 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+
+
+
+

+ Point of Sale Logo

+

+ Logo For Every Point of Sale +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This module helps you to set a logo for every point of sale. + This will help you to identify the + point of sale easily. You can also see this logo in pos screen + and pos receipt. +

+
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Logo for each Point of Sale.

+
+
+
+
+ +
+
+

+ Logo in POS screen.

+
+
+
+
+ +
+
+

+ Logo in POS receipt.

+
+
+
+ + + +
+
+

+ Screenshots +

+
+
+

+ Point of Sale -> Configuration -> Point of Sale

+

+ Here you can set logo for your point of sale.
+ Note: Please choose the image with the + dimension + "width:76px; height:47px" for better + output.

+ + +
+ + + +
+

+ POS receipt with Point of Sale logo and name

+

+ Your logo of choice will be shown in the receipt.

+ +
+ + + + +
+
+

Suggested Products

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

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

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

Need Help?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ +
+
diff --git a/point_of_sale_logo/static/src/js/pos_image_field.js b/point_of_sale_logo/static/src/js/pos_image_field.js new file mode 100755 index 000000000..cc5566d23 --- /dev/null +++ b/point_of_sale_logo/static/src/js/pos_image_field.js @@ -0,0 +1,24 @@ +odoo.define("point_of_sale_logo.pos_image_field", function (require) { + "use strict"; + const Registries = require('point_of_sale.Registries'); + const Chrome = require('point_of_sale.Chrome'); + const PosLogoChrome = (Chrome) => + class extends Chrome { + get imageUrl() { + if (this.env.pos){ + + if (this.env.pos.config){ + if (this.env.pos.config.image != false){ + return `/web/image?model=pos.config&field=image&id=${this.env.pos.config_id}&unique=1`; + + + }else{ + return false + } + } + } + } + }; + Registries.Component.extend(Chrome, PosLogoChrome); + return Chrome; +}); \ No newline at end of file diff --git a/point_of_sale_logo/static/src/js/pos_receipt_image.js b/point_of_sale_logo/static/src/js/pos_receipt_image.js new file mode 100644 index 000000000..c0c75b2b7 --- /dev/null +++ b/point_of_sale_logo/static/src/js/pos_receipt_image.js @@ -0,0 +1,25 @@ +odoo.define("point_of_sale_logo.pos_receipt_image", function (require) { + "use strict"; + const Registries = require('point_of_sale.Registries'); + const OrderReceipt = require('point_of_sale.OrderReceipt'); + const PosReceiptLogoChrome = (OrderReceipt) => + class extends OrderReceipt { + get imageUrl() { + if (this.env.pos){ + if (this.env.pos.config){ + if (this.env.pos.config.image != false){ + console.log('hi') + return `/web/image?model=pos.config&field=image&id=${this.env.pos.config_id}&unique=1`; + + + }else{ + console.log('hello') + return false + } + } + } + } + }; + Registries.Component.extend(OrderReceipt, PosReceiptLogoChrome); + return OrderReceipt; +}); \ No newline at end of file diff --git a/point_of_sale_logo/static/src/xml/pos_screen_image_view.xml b/point_of_sale_logo/static/src/xml/pos_screen_image_view.xml new file mode 100755 index 000000000..c49efab61 --- /dev/null +++ b/point_of_sale_logo/static/src/xml/pos_screen_image_view.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/point_of_sale_logo/static/src/xml/pos_ticket_view.xml b/point_of_sale_logo/static/src/xml/pos_ticket_view.xml new file mode 100755 index 000000000..f377aa0d7 --- /dev/null +++ b/point_of_sale_logo/static/src/xml/pos_ticket_view.xml @@ -0,0 +1,22 @@ + + + + + +
+ + + + + + +
+
+ +
+
+
+
+
+ +
diff --git a/point_of_sale_logo/views/pos_config_image_view.xml b/point_of_sale_logo/views/pos_config_image_view.xml new file mode 100755 index 000000000..f5a8a0528 --- /dev/null +++ b/point_of_sale_logo/views/pos_config_image_view.xml @@ -0,0 +1,15 @@ + + + + + pos.config.inherit.form + pos.config + + + + + + + + + \ No newline at end of file