diff --git a/pos_magnify_image/README.rst b/pos_magnify_image/README.rst new file mode 100755 index 000000000..c2c1de5f6 --- /dev/null +++ b/pos_magnify_image/README.rst @@ -0,0 +1,48 @@ +.. 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 Product Magnify Image +========================= +This module allow to magnify product image in pos. + +Configuration +============= +No additional configurations. + +Company +======= +* `Cybrosys Techno Solutions `__ + +Usage +===== +* + icon on pos product image. +* On clicking on + icon, display pop up with magnified product image. + +Credits +======= +Developer: Aswani pc @cybrosys, Contact: odoo@cybrosys.com + version 13: Yadu @cybrosys, Contact: odoo@cybrosys.com + version 14: Abhishek E T @cybrosys, 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_magnify_image/__init__.py b/pos_magnify_image/__init__.py new file mode 100755 index 000000000..8fc549fea --- /dev/null +++ b/pos_magnify_image/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Aswani PC (aswani@cybrosys.in) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ diff --git a/pos_magnify_image/__manifest__.py b/pos_magnify_image/__manifest__.py new file mode 100755 index 000000000..7017f053c --- /dev/null +++ b/pos_magnify_image/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Aswani PC (aswani@cybrosys.in) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ + +{ + 'name': "Pos Product Magnify Image", + 'version': '14.0.1.0.0', + 'summary': """Magnify product image in PoS""", + 'description': """Magnify Product Image in Point of Sale""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'website': "http://www.cybrosys.com", + 'category': 'Point of Sale', + 'depends': ['point_of_sale'], + 'data': ['views/point_of_sale_assets.xml'], + 'qweb': [ + 'static/src/xml/MagnifyProductPopup.xml', + 'static/src/xml/ProductItem.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/pos_magnify_image/doc/RELEASE_NOTES.md b/pos_magnify_image/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a371a7d8f --- /dev/null +++ b/pos_magnify_image/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 15.12.2021 +#### Version 14.0.1.0.0 +#### ADD + +- Initial commit for Pos Product Magnify Image diff --git a/pos_magnify_image/static/description/assets/icons/check.png b/pos_magnify_image/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/check.png differ diff --git a/pos_magnify_image/static/description/assets/icons/chevron.png b/pos_magnify_image/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/chevron.png differ diff --git a/pos_magnify_image/static/description/assets/icons/cogs.png b/pos_magnify_image/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/cogs.png differ diff --git a/pos_magnify_image/static/description/assets/icons/consultation.png b/pos_magnify_image/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/consultation.png differ diff --git a/pos_magnify_image/static/description/assets/icons/ecom-black.png b/pos_magnify_image/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/ecom-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/education-black.png b/pos_magnify_image/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/education-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/hotel-black.png b/pos_magnify_image/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/hotel-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/license.png b/pos_magnify_image/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/license.png differ diff --git a/pos_magnify_image/static/description/assets/icons/lifebuoy.png b/pos_magnify_image/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_magnify_image/static/description/assets/icons/logo.png b/pos_magnify_image/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/logo.png differ diff --git a/pos_magnify_image/static/description/assets/icons/manufacturing-black.png b/pos_magnify_image/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/pos-black.png b/pos_magnify_image/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/pos-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/puzzle.png b/pos_magnify_image/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/puzzle.png differ diff --git a/pos_magnify_image/static/description/assets/icons/restaurant-black.png b/pos_magnify_image/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/service-black.png b/pos_magnify_image/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/service-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/trading-black.png b/pos_magnify_image/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/trading-black.png differ diff --git a/pos_magnify_image/static/description/assets/icons/training.png b/pos_magnify_image/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/training.png differ diff --git a/pos_magnify_image/static/description/assets/icons/update.png b/pos_magnify_image/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/update.png differ diff --git a/pos_magnify_image/static/description/assets/icons/user.png b/pos_magnify_image/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/user.png differ diff --git a/pos_magnify_image/static/description/assets/icons/wrench.png b/pos_magnify_image/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_magnify_image/static/description/assets/icons/wrench.png differ diff --git a/pos_magnify_image/static/description/assets/modules/approval_image.png b/pos_magnify_image/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/pos_magnify_image/static/description/assets/modules/approval_image.png differ diff --git a/pos_magnify_image/static/description/assets/modules/budget_image.png b/pos_magnify_image/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/pos_magnify_image/static/description/assets/modules/budget_image.png differ diff --git a/pos_magnify_image/static/description/assets/modules/export_image.png b/pos_magnify_image/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/pos_magnify_image/static/description/assets/modules/export_image.png differ diff --git a/pos_magnify_image/static/description/assets/modules/magento_image.png b/pos_magnify_image/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/pos_magnify_image/static/description/assets/modules/magento_image.png differ diff --git a/pos_magnify_image/static/description/assets/modules/pos_image.png b/pos_magnify_image/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/pos_magnify_image/static/description/assets/modules/pos_image.png differ diff --git a/pos_magnify_image/static/description/assets/modules/shopify_image.png b/pos_magnify_image/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/pos_magnify_image/static/description/assets/modules/shopify_image.png differ diff --git a/pos_magnify_image/static/description/assets/screenshots/hero.png b/pos_magnify_image/static/description/assets/screenshots/hero.png new file mode 100755 index 000000000..03b6a200d Binary files /dev/null and b/pos_magnify_image/static/description/assets/screenshots/hero.png differ diff --git a/pos_magnify_image/static/description/assets/screenshots/pos_magnify_image_1.png b/pos_magnify_image/static/description/assets/screenshots/pos_magnify_image_1.png new file mode 100755 index 000000000..a4fe31195 Binary files /dev/null and b/pos_magnify_image/static/description/assets/screenshots/pos_magnify_image_1.png differ diff --git a/pos_magnify_image/static/description/banner.png b/pos_magnify_image/static/description/banner.png new file mode 100644 index 000000000..5a2b28267 Binary files /dev/null and b/pos_magnify_image/static/description/banner.png differ diff --git a/pos_magnify_image/static/description/icon.png b/pos_magnify_image/static/description/icon.png new file mode 100644 index 000000000..e296e96aa Binary files /dev/null and b/pos_magnify_image/static/description/icon.png differ diff --git a/pos_magnify_image/static/description/index.html b/pos_magnify_image/static/description/index.html new file mode 100644 index 000000000..a3df8f719 --- /dev/null +++ b/pos_magnify_image/static/description/index.html @@ -0,0 +1,496 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+ +
+
+
+

+ Pos Product Magnify Image +

+

+ This module allows magnifying product images in Point of sale +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This module crafted by Cybrosys Technologies provides an option to magnify product images in the Point of Sale. +

+
+
+ +
+
+

+ Configuration +

+
+
+

No additional configurations.

+
+
+ +
+
+

+ Features +

+
+
+
+ +
+
+

+ Magnify product images in PoS

+

+ Use the + icon on the product image in the PoS to get a magnified image. +

+
+
+
+ +
+
+

+ Screenshots +

+
+
+

Magnify product image

+

+ Click on the + icon to get a magnified product image. +

+ +
+
+ + +
+
+

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?

+
+
+
+ + +
+ + + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/pos_magnify_image/static/src/css/pos_magnify_image.css b/pos_magnify_image/static/src/css/pos_magnify_image.css new file mode 100755 index 000000000..d2fa1d951 --- /dev/null +++ b/pos_magnify_image/static/src/css/pos_magnify_image.css @@ -0,0 +1,17 @@ +.pos-product-magnify { + position: absolute; + top: 0px; + left: 2px; + line-height: 13px; + border-radius: 2px; + z-index: 1000; +} +.product-large-image{ + margin: auto; + max-width: auto; + max-height: 250px !important; +} +.product-large-image img{ + max-width: 100%; + max-height: 250px !important; +} \ No newline at end of file diff --git a/pos_magnify_image/static/src/js/MagnifyProductPopup.js b/pos_magnify_image/static/src/js/MagnifyProductPopup.js new file mode 100644 index 000000000..2fde308de --- /dev/null +++ b/pos_magnify_image/static/src/js/MagnifyProductPopup.js @@ -0,0 +1,23 @@ +odoo.define('pos_magnify_image.MagnifyProductPopup', function (require) { + "use strict"; + + const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); + const Registries = require('point_of_sale.Registries'); + + class MagnifyProductPopup extends AbstractAwaitablePopup { + constructor() { + super(...arguments); + } + get largeImageUrl() { + const product = this.props['body']; + return `/web/image?model=product.product&field=image_1920&id=${product.id}&write_date=${product.write_date}&unique=1`; + } + } + MagnifyProductPopup.template = 'MagnifyProductPopup'; + MagnifyProductPopup.defaultProps = { + cancelText: 'Close', + }; + MagnifyProductPopup.template = 'MagnifyProductPopup'; + Registries.Component.add(MagnifyProductPopup); + return MagnifyProductPopup; +}); \ No newline at end of file diff --git a/pos_magnify_image/static/src/js/ProductScreen.js b/pos_magnify_image/static/src/js/ProductScreen.js new file mode 100755 index 000000000..c420b7020 --- /dev/null +++ b/pos_magnify_image/static/src/js/ProductScreen.js @@ -0,0 +1,34 @@ +odoo.define('pos_magnify_image.ProductScreen', function (require) { + "use strict"; + + const { useListener } = require('web.custom_hooks'); + const Registries = require('point_of_sale.Registries'); + const ProductScreen = require('point_of_sale.ProductScreen'); + var core = require('web.core'); + var _t = core._t; + + const MagnifyProduct = ProductScreen => + class extends ProductScreen { + constructor() { + super(...arguments); + useListener('click-magnify-product', this._clickMagnifyProduct); + this.magnifyProduct = false; + } + async _clickMagnifyProduct(event) { + this.magnifyProduct = true; + const { confirmed } = await this.showPopup('MagnifyProductPopup', { + title: this.env._t(event.detail.display_name), + body: this.env._t(event.detail), + }); + this.magnifyProduct = false; + } + async _clickProduct(event) { + if (this.magnifyProduct == true) { + return false; + } + super._clickProduct(event); + } + } + Registries.Component.extend(ProductScreen, MagnifyProduct); + return MagnifyProduct; +}); \ No newline at end of file diff --git a/pos_magnify_image/static/src/xml/MagnifyProductPopup.xml b/pos_magnify_image/static/src/xml/MagnifyProductPopup.xml new file mode 100644 index 000000000..2861e53ab --- /dev/null +++ b/pos_magnify_image/static/src/xml/MagnifyProductPopup.xml @@ -0,0 +1,24 @@ + + + + + + + + \ No newline at end of file diff --git a/pos_magnify_image/static/src/xml/ProductItem.xml b/pos_magnify_image/static/src/xml/ProductItem.xml new file mode 100755 index 000000000..89df2852e --- /dev/null +++ b/pos_magnify_image/static/src/xml/ProductItem.xml @@ -0,0 +1,14 @@ + + + + + +
+ + + +
+
+
+ +
\ No newline at end of file diff --git a/pos_magnify_image/views/point_of_sale_assets.xml b/pos_magnify_image/views/point_of_sale_assets.xml new file mode 100755 index 000000000..8fac4be86 --- /dev/null +++ b/pos_magnify_image/views/point_of_sale_assets.xml @@ -0,0 +1,12 @@ + + + +