diff --git a/pos_magnify_image/__manifest__.py b/pos_magnify_image/__manifest__.py index 9fc02d126..2c0703f09 100755 --- a/pos_magnify_image/__manifest__.py +++ b/pos_magnify_image/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': "Pos Product Magnify Image", - 'version': '18.0.1.0.0', + 'version': '18.0.1.1.0', 'category': 'Point of Sale', 'summary': """Magnify product image in PoS""", 'description': "Allows to enlarge the image in a button click for every" diff --git a/pos_magnify_image/doc/RELEASE_NOTES.md b/pos_magnify_image/doc/RELEASE_NOTES.md index 7d86c166b..4d42349f6 100644 --- a/pos_magnify_image/doc/RELEASE_NOTES.md +++ b/pos_magnify_image/doc/RELEASE_NOTES.md @@ -5,3 +5,9 @@ #### ADD - Initial commit for Pos Product Magnify Image + +#### 26.11.2025 +#### Version 18.0.1.1.0 +#### BUG FIX + +- Fixed the issues in the module where the image was blurred while zooming. \ No newline at end of file diff --git a/pos_magnify_image/static/src/js/prouct_magnify_image.js b/pos_magnify_image/static/src/js/prouct_magnify_image.js index 135c3f718..90e0da663 100755 --- a/pos_magnify_image/static/src/js/prouct_magnify_image.js +++ b/pos_magnify_image/static/src/js/prouct_magnify_image.js @@ -3,14 +3,19 @@ import { useService } from "@web/core/utils/hooks"; import { patch } from "@web/core/utils/patch"; import { ProductCard } from "@point_of_sale/app/generic_components/product_card/product_card"; import { MagnifyProductPopup } from "@pos_magnify_image/js/MagnifyProductPopup"; -//Inside ProductsWidget adding clickMagnifyProduct function for magnify image + patch(ProductCard.prototype, { setup() { super.setup(...arguments); this.dialog = useService("dialog"); }, - async onProductMagnifyClick(product){ - this.magnifyProduct = true; - this.dialog.add(MagnifyProductPopup, {product: this.props}) + async onProductMagnifyClick(ev) { // Optional: Add (ev) if needed for event handling + // Extract the actual product from props (adjust key if it's not 'product') + const productData = this.props.product; // Or this.props if product is flat—log to confirm + if (!productData || !productData.id) { + console.error("Product ID not found in props:", this.props); // Debug log + return; + } + this.dialog.add(MagnifyProductPopup, { product: productData }); } -}); +}); \ 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 index 76744efae..b1f649daa 100644 --- a/pos_magnify_image/static/src/xml/MagnifyProductPopup.xml +++ b/pos_magnify_image/static/src/xml/MagnifyProductPopup.xml @@ -1,23 +1,24 @@ - - +
- - - - - +
-
- +
+
- +