Browse Source

Nov 13: [FIX] Bug Fixed 'chatter_camera'

14.0
RisvanaCybro 5 months ago
parent
commit
ee5fe8591a
  1. 4
      chatter_camera/README.rst
  2. 0
      chatter_camera/__init__.py
  3. 2
      chatter_camera/__manifest__.py
  4. 2
      chatter_camera/doc/RELEASE_NOTES.md
  5. 0
      chatter_camera/models/__init__.py
  6. 0
      chatter_camera/models/ir_attachment.py
  7. 0
      chatter_camera/static/description/assets/icons/check.png
  8. 0
      chatter_camera/static/description/assets/icons/chevron.png
  9. 0
      chatter_camera/static/description/assets/icons/cogs.png
  10. 0
      chatter_camera/static/description/assets/icons/consultation.png
  11. 0
      chatter_camera/static/description/assets/icons/ecom-black.png
  12. 0
      chatter_camera/static/description/assets/icons/education-black.png
  13. 0
      chatter_camera/static/description/assets/icons/hotel-black.png
  14. 0
      chatter_camera/static/description/assets/icons/license.png
  15. 0
      chatter_camera/static/description/assets/icons/lifebuoy.png
  16. 0
      chatter_camera/static/description/assets/icons/manufacturing-black.png
  17. 0
      chatter_camera/static/description/assets/icons/pos-black.png
  18. 0
      chatter_camera/static/description/assets/icons/puzzle.png
  19. 0
      chatter_camera/static/description/assets/icons/restaurant-black.png
  20. 0
      chatter_camera/static/description/assets/icons/service-black.png
  21. 0
      chatter_camera/static/description/assets/icons/trading-black.png
  22. 0
      chatter_camera/static/description/assets/icons/training.png
  23. 0
      chatter_camera/static/description/assets/icons/update.png
  24. 0
      chatter_camera/static/description/assets/icons/user.png
  25. 0
      chatter_camera/static/description/assets/icons/wrench.png
  26. 0
      chatter_camera/static/description/assets/misc/categories.png
  27. 0
      chatter_camera/static/description/assets/misc/check-box.png
  28. 0
      chatter_camera/static/description/assets/misc/compass.png
  29. 0
      chatter_camera/static/description/assets/misc/corporate.png
  30. 0
      chatter_camera/static/description/assets/misc/customer-support.png
  31. 0
      chatter_camera/static/description/assets/misc/cybrosys-logo.png
  32. 0
      chatter_camera/static/description/assets/misc/features.png
  33. 0
      chatter_camera/static/description/assets/misc/logo.png
  34. 0
      chatter_camera/static/description/assets/misc/pictures.png
  35. 0
      chatter_camera/static/description/assets/misc/pie-chart.png
  36. 0
      chatter_camera/static/description/assets/misc/right-arrow.png
  37. 0
      chatter_camera/static/description/assets/misc/star.png
  38. 0
      chatter_camera/static/description/assets/misc/support.png
  39. 0
      chatter_camera/static/description/assets/misc/whatsapp.png
  40. 0
      chatter_camera/static/description/assets/modules/1.png
  41. 0
      chatter_camera/static/description/assets/modules/2.png
  42. 0
      chatter_camera/static/description/assets/modules/3.gif
  43. 0
      chatter_camera/static/description/assets/modules/4.png
  44. 0
      chatter_camera/static/description/assets/modules/5.gif
  45. 0
      chatter_camera/static/description/assets/modules/5.png
  46. 0
      chatter_camera/static/description/assets/modules/6.png
  47. 0
      chatter_camera/static/description/assets/modules/barcode.png
  48. 0
      chatter_camera/static/description/assets/modules/fatoorah.png
  49. 0
      chatter_camera/static/description/assets/modules/integration_biometric.png
  50. 0
      chatter_camera/static/description/assets/modules/product_brand.png
  51. 0
      chatter_camera/static/description/assets/modules/website_cart.png
  52. 0
      chatter_camera/static/description/assets/screenshots/caapture.jpg
  53. 0
      chatter_camera/static/description/assets/screenshots/camera.png
  54. 0
      chatter_camera/static/description/assets/screenshots/hero.gif
  55. 0
      chatter_camera/static/description/assets/screenshots/image_chatter.png
  56. 0
      chatter_camera/static/description/banner.jpg
  57. 0
      chatter_camera/static/description/icon.png
  58. 29
      chatter_camera/static/description/index.html
  59. 8
      chatter_camera/static/src/js/camera_chatter.js
  60. 0
      chatter_camera/static/src/xml/chatter_camera_templates.xml
  61. 0
      chatter_camera/views/templates.xml

4
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

0
chatter_camera/__init__.py

2
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',
],

2
chatter_camera/doc/RELEASE_NOTES.md

@ -1,6 +1,6 @@
## Module <chatter_camera>
#### 10.10.2023
#### 19.10.2024
#### Version 14.0.1.0.0
#### ADD
- Initial commit for Chatter Camera

0
chatter_camera/models/__init__.py

0
chatter_camera/models/ir_attachment.py

0
chatter_camera/static/description/assets/icons/check.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
chatter_camera/static/description/assets/icons/chevron.png

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 310 B

0
chatter_camera/static/description/assets/icons/cogs.png

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
chatter_camera/static/description/assets/icons/consultation.png

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
chatter_camera/static/description/assets/icons/ecom-black.png

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 576 B

0
chatter_camera/static/description/assets/icons/education-black.png

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

0
chatter_camera/static/description/assets/icons/hotel-black.png

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 911 B

0
chatter_camera/static/description/assets/icons/license.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
chatter_camera/static/description/assets/icons/lifebuoy.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
chatter_camera/static/description/assets/icons/manufacturing-black.png

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

0
chatter_camera/static/description/assets/icons/pos-black.png

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 878 B

0
chatter_camera/static/description/assets/icons/puzzle.png

Before

Width:  |  Height:  |  Size: 653 B

After

Width:  |  Height:  |  Size: 653 B

0
chatter_camera/static/description/assets/icons/restaurant-black.png

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 905 B

0
chatter_camera/static/description/assets/icons/service-black.png

Before

Width:  |  Height:  |  Size: 839 B

After

Width:  |  Height:  |  Size: 839 B

0
chatter_camera/static/description/assets/icons/trading-black.png

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 427 B

0
chatter_camera/static/description/assets/icons/training.png

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 627 B

0
chatter_camera/static/description/assets/icons/update.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
chatter_camera/static/description/assets/icons/user.png

Before

Width:  |  Height:  |  Size: 988 B

After

Width:  |  Height:  |  Size: 988 B

0
chatter_camera/static/description/assets/icons/wrench.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
chatter_camera/static/description/assets/misc/categories.png

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
chatter_camera/static/description/assets/misc/check-box.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
chatter_camera/static/description/assets/misc/compass.png

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
chatter_camera/static/description/assets/misc/corporate.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
chatter_camera/static/description/assets/misc/customer-support.png

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
chatter_camera/static/description/assets/misc/cybrosys-logo.png

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

0
chatter_camera/static/description/assets/misc/features.png

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 589 B

0
chatter_camera/static/description/assets/misc/logo.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
chatter_camera/static/description/assets/misc/pictures.png

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
chatter_camera/static/description/assets/misc/pie-chart.png

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
chatter_camera/static/description/assets/misc/right-arrow.png

Before

Width:  |  Height:  |  Size: 967 B

After

Width:  |  Height:  |  Size: 967 B

0
chatter_camera/static/description/assets/misc/star.png

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

0
chatter_camera/static/description/assets/misc/support.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
chatter_camera/static/description/assets/misc/whatsapp.png

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

0
chatter_camera/static/description/assets/modules/1.png

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

0
chatter_camera/static/description/assets/modules/2.png

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

0
chatter_camera/static/description/assets/modules/3.gif

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

0
chatter_camera/static/description/assets/modules/4.png

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

0
chatter_camera/static/description/assets/modules/5.gif

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

0
chatter_camera/static/description/assets/modules/5.png

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

0
chatter_camera/static/description/assets/modules/6.png

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

0
chatter_camera/static/description/assets/modules/barcode.png

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
chatter_camera/static/description/assets/modules/fatoorah.png

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

0
chatter_camera/static/description/assets/modules/integration_biometric.png

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

0
chatter_camera/static/description/assets/modules/product_brand.png

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

0
chatter_camera/static/description/assets/modules/website_cart.png

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
chatter_camera/static/description/assets/screenshots/caapture.jpg

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 125 KiB

0
chatter_camera/static/description/assets/screenshots/camera.png

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 244 KiB

0
chatter_camera/static/description/assets/screenshots/hero.gif

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 267 KiB

0
chatter_camera/static/description/assets/screenshots/image_chatter.png

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

0
chatter_camera/static/description/banner.jpg

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

0
chatter_camera/static/description/icon.png

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

29
chatter_camera/static/description/index.html

@ -1,7 +1,6 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<div style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
@ -22,19 +21,13 @@
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Chatter Camera</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Capture image from chatter</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
</div>
</div>
</div>
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Chatter Camera</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Capture image from chatter</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
</div>
@ -101,8 +94,7 @@
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
@ -123,8 +115,7 @@
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>

8
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() {

0
chatter_camera/static/src/xml/chatter_camera_templates.xml

0
chatter_camera/views/templates.xml

Loading…
Cancel
Save