From ee5fe8591a7627a215ef38a5202b27a4ed914e1f Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Wed, 13 Nov 2024 16:51:32 +0530 Subject: [PATCH] Nov 13: [FIX] Bug Fixed 'chatter_camera' --- chatter_camera/README.rst | 4 +-- chatter_camera/__init__.py | 0 chatter_camera/__manifest__.py | 2 +- chatter_camera/doc/RELEASE_NOTES.md | 2 +- chatter_camera/models/__init__.py | 0 chatter_camera/models/ir_attachment.py | 0 .../static/description/assets/icons/check.png | Bin .../description/assets/icons/chevron.png | Bin .../static/description/assets/icons/cogs.png | Bin .../description/assets/icons/consultation.png | Bin .../description/assets/icons/ecom-black.png | Bin .../assets/icons/education-black.png | Bin .../description/assets/icons/hotel-black.png | Bin .../description/assets/icons/license.png | Bin .../description/assets/icons/lifebuoy.png | Bin .../assets/icons/manufacturing-black.png | Bin .../description/assets/icons/pos-black.png | Bin .../description/assets/icons/puzzle.png | Bin .../assets/icons/restaurant-black.png | Bin .../assets/icons/service-black.png | Bin .../assets/icons/trading-black.png | Bin .../description/assets/icons/training.png | Bin .../description/assets/icons/update.png | Bin .../static/description/assets/icons/user.png | Bin .../description/assets/icons/wrench.png | Bin .../description/assets/misc/categories.png | Bin .../description/assets/misc/check-box.png | Bin .../description/assets/misc/compass.png | Bin .../description/assets/misc/corporate.png | Bin .../assets/misc/customer-support.png | Bin .../description/assets/misc/cybrosys-logo.png | Bin .../description/assets/misc/features.png | Bin .../static/description/assets/misc/logo.png | Bin .../description/assets/misc/pictures.png | Bin .../description/assets/misc/pie-chart.png | Bin .../description/assets/misc/right-arrow.png | Bin .../static/description/assets/misc/star.png | Bin .../description/assets/misc/support.png | Bin .../description/assets/misc/whatsapp.png | Bin .../static/description/assets/modules/1.png | Bin .../static/description/assets/modules/2.png | Bin .../static/description/assets/modules/3.gif | Bin .../static/description/assets/modules/4.png | Bin .../static/description/assets/modules/5.gif | Bin .../static/description/assets/modules/5.png | Bin .../static/description/assets/modules/6.png | Bin .../description/assets/modules/barcode.png | Bin .../description/assets/modules/fatoorah.png | Bin .../assets/modules/integration_biometric.png | Bin .../assets/modules/product_brand.png | Bin .../assets/modules/website_cart.png | Bin .../assets/screenshots/caapture.jpg | Bin .../description/assets/screenshots/camera.png | Bin .../description/assets/screenshots/hero.gif | Bin .../assets/screenshots/image_chatter.png | Bin chatter_camera/static/description/banner.jpg | Bin chatter_camera/static/description/icon.png | Bin chatter_camera/static/description/index.html | 29 ++++++------------ .../static/src/js/camera_chatter.js | 8 ++--- .../src/xml/chatter_camera_templates.xml | 0 chatter_camera/views/templates.xml | 0 61 files changed, 18 insertions(+), 27 deletions(-) mode change 100644 => 100755 chatter_camera/README.rst mode change 100644 => 100755 chatter_camera/__init__.py mode change 100644 => 100755 chatter_camera/__manifest__.py mode change 100644 => 100755 chatter_camera/doc/RELEASE_NOTES.md mode change 100644 => 100755 chatter_camera/models/__init__.py mode change 100644 => 100755 chatter_camera/models/ir_attachment.py mode change 100644 => 100755 chatter_camera/static/description/assets/icons/check.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/chevron.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/cogs.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/consultation.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/ecom-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/education-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/hotel-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/license.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/lifebuoy.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/manufacturing-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/pos-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/puzzle.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/restaurant-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/service-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/trading-black.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/training.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/update.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/user.png mode change 100644 => 100755 chatter_camera/static/description/assets/icons/wrench.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/categories.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/check-box.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/compass.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/corporate.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/customer-support.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/cybrosys-logo.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/features.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/logo.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/pictures.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/pie-chart.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/right-arrow.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/star.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/support.png mode change 100644 => 100755 chatter_camera/static/description/assets/misc/whatsapp.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/1.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/2.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/3.gif mode change 100644 => 100755 chatter_camera/static/description/assets/modules/4.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/5.gif mode change 100644 => 100755 chatter_camera/static/description/assets/modules/5.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/6.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/barcode.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/fatoorah.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/integration_biometric.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/product_brand.png mode change 100644 => 100755 chatter_camera/static/description/assets/modules/website_cart.png mode change 100644 => 100755 chatter_camera/static/description/assets/screenshots/caapture.jpg mode change 100644 => 100755 chatter_camera/static/description/assets/screenshots/camera.png mode change 100644 => 100755 chatter_camera/static/description/assets/screenshots/hero.gif mode change 100644 => 100755 chatter_camera/static/description/assets/screenshots/image_chatter.png mode change 100644 => 100755 chatter_camera/static/description/banner.jpg mode change 100644 => 100755 chatter_camera/static/description/icon.png mode change 100644 => 100755 chatter_camera/static/description/index.html mode change 100644 => 100755 chatter_camera/static/src/js/camera_chatter.js mode change 100644 => 100755 chatter_camera/static/src/xml/chatter_camera_templates.xml mode change 100644 => 100755 chatter_camera/views/templates.xml diff --git a/chatter_camera/README.rst b/chatter_camera/README.rst old mode 100644 new mode 100755 index 81b3a3976..0704c3bc1 --- a/chatter_camera/README.rst +++ b/chatter_camera/README.rst @@ -1,9 +1,9 @@ -.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 Chatter Camera -============== +======================= This module helps you to capture the images from the chatter, and also we can attach the corresponding images. Configuration diff --git a/chatter_camera/__init__.py b/chatter_camera/__init__.py old mode 100644 new mode 100755 diff --git a/chatter_camera/__manifest__.py b/chatter_camera/__manifest__.py old mode 100644 new mode 100755 index 9c9bead55..46097f701 --- a/chatter_camera/__manifest__.py +++ b/chatter_camera/__manifest__.py @@ -32,7 +32,7 @@ 'company': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions', 'website': 'https://www.cybrosys.com', - 'depends': ['mail'], + 'depends': ['base', 'mail'], 'data': [ 'views/templates.xml', ], diff --git a/chatter_camera/doc/RELEASE_NOTES.md b/chatter_camera/doc/RELEASE_NOTES.md old mode 100644 new mode 100755 index e9e17ff3f..accdfbebf --- a/chatter_camera/doc/RELEASE_NOTES.md +++ b/chatter_camera/doc/RELEASE_NOTES.md @@ -1,6 +1,6 @@ ## Module -#### 10.10.2023 +#### 19.10.2024 #### Version 14.0.1.0.0 #### ADD - Initial commit for Chatter Camera diff --git a/chatter_camera/models/__init__.py b/chatter_camera/models/__init__.py old mode 100644 new mode 100755 diff --git a/chatter_camera/models/ir_attachment.py b/chatter_camera/models/ir_attachment.py old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/check.png b/chatter_camera/static/description/assets/icons/check.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/chevron.png b/chatter_camera/static/description/assets/icons/chevron.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/cogs.png b/chatter_camera/static/description/assets/icons/cogs.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/consultation.png b/chatter_camera/static/description/assets/icons/consultation.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/ecom-black.png b/chatter_camera/static/description/assets/icons/ecom-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/education-black.png b/chatter_camera/static/description/assets/icons/education-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/hotel-black.png b/chatter_camera/static/description/assets/icons/hotel-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/license.png b/chatter_camera/static/description/assets/icons/license.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/lifebuoy.png b/chatter_camera/static/description/assets/icons/lifebuoy.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/manufacturing-black.png b/chatter_camera/static/description/assets/icons/manufacturing-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/pos-black.png b/chatter_camera/static/description/assets/icons/pos-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/puzzle.png b/chatter_camera/static/description/assets/icons/puzzle.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/restaurant-black.png b/chatter_camera/static/description/assets/icons/restaurant-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/service-black.png b/chatter_camera/static/description/assets/icons/service-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/trading-black.png b/chatter_camera/static/description/assets/icons/trading-black.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/training.png b/chatter_camera/static/description/assets/icons/training.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/update.png b/chatter_camera/static/description/assets/icons/update.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/user.png b/chatter_camera/static/description/assets/icons/user.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/icons/wrench.png b/chatter_camera/static/description/assets/icons/wrench.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/categories.png b/chatter_camera/static/description/assets/misc/categories.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/check-box.png b/chatter_camera/static/description/assets/misc/check-box.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/compass.png b/chatter_camera/static/description/assets/misc/compass.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/corporate.png b/chatter_camera/static/description/assets/misc/corporate.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/customer-support.png b/chatter_camera/static/description/assets/misc/customer-support.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/cybrosys-logo.png b/chatter_camera/static/description/assets/misc/cybrosys-logo.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/features.png b/chatter_camera/static/description/assets/misc/features.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/logo.png b/chatter_camera/static/description/assets/misc/logo.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/pictures.png b/chatter_camera/static/description/assets/misc/pictures.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/pie-chart.png b/chatter_camera/static/description/assets/misc/pie-chart.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/right-arrow.png b/chatter_camera/static/description/assets/misc/right-arrow.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/star.png b/chatter_camera/static/description/assets/misc/star.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/support.png b/chatter_camera/static/description/assets/misc/support.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/misc/whatsapp.png b/chatter_camera/static/description/assets/misc/whatsapp.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/1.png b/chatter_camera/static/description/assets/modules/1.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/2.png b/chatter_camera/static/description/assets/modules/2.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/3.gif b/chatter_camera/static/description/assets/modules/3.gif old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/4.png b/chatter_camera/static/description/assets/modules/4.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/5.gif b/chatter_camera/static/description/assets/modules/5.gif old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/5.png b/chatter_camera/static/description/assets/modules/5.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/6.png b/chatter_camera/static/description/assets/modules/6.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/barcode.png b/chatter_camera/static/description/assets/modules/barcode.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/fatoorah.png b/chatter_camera/static/description/assets/modules/fatoorah.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/integration_biometric.png b/chatter_camera/static/description/assets/modules/integration_biometric.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/product_brand.png b/chatter_camera/static/description/assets/modules/product_brand.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/modules/website_cart.png b/chatter_camera/static/description/assets/modules/website_cart.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/screenshots/caapture.jpg b/chatter_camera/static/description/assets/screenshots/caapture.jpg old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/screenshots/camera.png b/chatter_camera/static/description/assets/screenshots/camera.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/screenshots/hero.gif b/chatter_camera/static/description/assets/screenshots/hero.gif old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/assets/screenshots/image_chatter.png b/chatter_camera/static/description/assets/screenshots/image_chatter.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/banner.jpg b/chatter_camera/static/description/banner.jpg old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/icon.png b/chatter_camera/static/description/icon.png old mode 100644 new mode 100755 diff --git a/chatter_camera/static/description/index.html b/chatter_camera/static/description/index.html old mode 100644 new mode 100755 index 117ac2616..a66d6a520 --- a/chatter_camera/static/description/index.html +++ b/chatter_camera/static/description/index.html @@ -1,7 +1,6 @@
-
+
@@ -22,19 +21,13 @@ -
-
-
-

- Chatter Camera

-

- Capture image from chatter

- - -
-
-
+

+ Chatter Camera

+

+ Capture image from chatter

+ +
@@ -101,8 +94,7 @@
+ style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
@@ -123,8 +115,7 @@
+ style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
diff --git a/chatter_camera/static/src/js/camera_chatter.js b/chatter_camera/static/src/js/camera_chatter.js old mode 100644 new mode 100755 index f053d97c2..55c6650df --- a/chatter_camera/static/src/js/camera_chatter.js +++ b/chatter_camera/static/src/js/camera_chatter.js @@ -10,8 +10,8 @@ odoo.define('chatter_camera.camera_chatter', function(require) { * Open the camera **/ onClickCamera(ev) { - var myModal = $(ev.target.parentElement.nextSibling.childNodes[0]); - myModal[0].style.display = "block"; + var myModal = document.getElementById('CameraModal'); + $(myModal)[0].style.display = "block"; var All_mediaDevices = navigator.mediaDevices; All_mediaDevices.getUserMedia({ audio: false, @@ -33,8 +33,8 @@ odoo.define('chatter_camera.camera_chatter', function(require) { * Capture the image **/ async onClickStop(ev){ - var myModal = $(ev.target.parentElement.parentElement.parentElement); - myModal[0].style.display = "none"; + var myModal = document.getElementById('CameraModal'); + $(myModal)[0].style.display = "none"; window.location.reload(); }, async ImageCapture() { diff --git a/chatter_camera/static/src/xml/chatter_camera_templates.xml b/chatter_camera/static/src/xml/chatter_camera_templates.xml old mode 100644 new mode 100755 diff --git a/chatter_camera/views/templates.xml b/chatter_camera/views/templates.xml old mode 100644 new mode 100755