Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9b41af9
[NEW] web_widget_image_webcam: New Module that allows to take image w…
bud-e Sep 14, 2016
4ed2ee6
[10.0][MIG] Migrate web_widget_image_webcam v10
smurf-U Jun 4, 2017
f011db6
[11.0][MIG] web_widget_image_webcam: code migration to 11.0
bud-e Jul 3, 2019
54f0a28
[11.0][MIG] web_widget_image_webcam: update webcam library.
bud-e Jul 3, 2019
2556d57
[IMP] Remove extra padding from Image binary.
bud-e Nov 1, 2019
14fe96c
[MIG] Migration to 12.0: web_widget_image_webcam
ivantodorovich Mar 12, 2020
4f1d6ba
[FIX] web_widget_image_webcam: Move JS lib to proper location
pedrobaeza Apr 23, 2020
1534bf8
Added translation using Weblate (Spanish)
claudiagn Aug 6, 2020
c5e7548
Translated using Weblate (Spanish)
claudiagn Aug 6, 2020
a9dca50
[MIG] Migrated web_widget_image_webcam module from v12 to v13.
Shivams7 Jan 21, 2021
0b2fb5c
[MIG] web_widget_image_webcam from v13 to v14
alexis-via Apr 22, 2022
cbe6ed2
[FIX] lint
legalsylvain Oct 20, 2022
0915992
[FIX] web_widget_image_webcam : move lib file in lib folder
legalsylvain Oct 20, 2022
b2f4c64
web_widget_image_webcam 14.0.1.0.1
OCA-git-bot Oct 21, 2022
64ee024
[MIG] web_widget_image_webcam: Migration to 16.0
emlafza Nov 29, 2022
cdd8310
[BOT] post-merge updates
OCA-git-bot Mar 9, 2024
beca034
Update translation files
weblate Mar 9, 2024
9c12c6e
Added translation using Weblate (Italian)
mymage Mar 12, 2024
241b160
Translated using Weblate (Italian)
mymage Mar 12, 2024
34662f5
[IMP] web_widget_image_webcam: pre-commit auto fixes
Jul 4, 2025
ab771f8
[MIG] web_widget_image_webcam: Migration to 18.0
Jul 7, 2025
8d39833
[18.0][IMP] web_widget_image_webcam: Add webcam_size options for imag…
Aug 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions web_widget_image_webcam/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
=========================
Web Widget - Image WebCam
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2d66955d15910dee351fd8c2b9d090f771a4b048783299808984600d58d84738
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_widget_image_webcam
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_widget_image_webcam
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of the image widget and allows to
take snapshots with WebCam.

**Table of contents**

.. contents::
:local:

Configuration
=============

By default, the module works with all `major
browsers <https://github.com/jhuckaby/webcamjs/blob/master/DOCS.md#browser-support>`__.

An important note for **Chrome 47+** users - this module only works with
websites delivered over SSL / HTTPS. Visit this for `more
info <https://github.com/jhuckaby/webcamjs/blob/master/DOCS.md#important-note-for-chrome-47>`__.

But, If you still want this module to work with websites without SSL /
HTTPS. Here is the steps to do it easily (Always run in Adobe Flash
fallback mode, but it is not desirable).

Set the configuration parameter
``web_widget_image_webcam.flash_fallback_mode`` to ``1`` (note that
configuration will be applied after browser reload).

Its done! Now this module also work with websites without SSL / HTTPS.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_image_webcam%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tech Receptives
* Kaushal Prajapati

Contributors
------------

- Siddharth Bhalgami <[email protected]>
- Kaushal Prajapati <[email protected]>
- `Druidoo <https://www.druidoo.io>`__:

- Iván Todorovich

- Shivam Soni <[email protected]>
- `Trobz <https://www.trobz.com>`__:

- Phan Hong Phuc <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_widget_image_webcam>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_widget_image_webcam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions web_widget_image_webcam/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2016 Siddharth Bhalgami <[email protected]>
# Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Web Widget - Image WebCam",
"summary": "Allows to take image with WebCam",
"version": "18.0.1.0.0",
"category": "web",
"website": "https://github.com/OCA/web",
"author": "Tech Receptives, "
"Kaushal Prajapati, "
"Odoo Community Association (OCA)",
"license": "LGPL-3",
"depends": ["web", "base"],
"assets": {
"web.assets_backend": [
"web_widget_image_webcam/static/src/js/webcam_widget.esm.js",
"web_widget_image_webcam/static/src/css/web_widget_image_webcam.css",
"web_widget_image_webcam/static/src/xml/web_widget_image_webcam.xml",
]
},
"installable": True,
}
57 changes: 57 additions & 0 deletions web_widget_image_webcam/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_image_webcam
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-08-06 11:59+0000\n"
"Last-Translator: claudiagn <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Close"
msgstr "Cerrar"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Save & Close"
msgstr "Guardar y cerrar"

#. module: web_widget_image_webcam
#: model:ir.model,name:web_widget_image_webcam.model_ir_config_parameter
msgid "System Parameter"
msgstr "Parámetro del sistema"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Take Snapshot"
msgstr "Tomar instantánea"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/xml/web_widget_image_webcam.xml:0
#, python-format
msgid "WebCam"
msgstr "WebCam"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "WebCam Booth"
msgstr "Cabina de WebCam"
57 changes: 57 additions & 0 deletions web_widget_image_webcam/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_image_webcam
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-12 13:36+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Close"
msgstr "Chiudi"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Save & Close"
msgstr "Salva e chiudi"

#. module: web_widget_image_webcam
#: model:ir.model,name:web_widget_image_webcam.model_ir_config_parameter
msgid "System Parameter"
msgstr "Parametro di sistema"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Take Snapshot"
msgstr "Salva istantanea"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/xml/web_widget_image_webcam.xml:0
#, python-format
msgid "WebCam"
msgstr "Webcam"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "WebCam Booth"
msgstr "Archivio webcam"
55 changes: 55 additions & 0 deletions web_widget_image_webcam/i18n/web_widget_image_webcam.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_image_webcam
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Close"
msgstr ""

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Save & Close"
msgstr ""

#. module: web_widget_image_webcam
#: model:ir.model,name:web_widget_image_webcam.model_ir_config_parameter
msgid "System Parameter"
msgstr ""

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "Take Snapshot"
msgstr ""

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/xml/web_widget_image_webcam.xml:0
#: code:addons/web_widget_image_webcam/static/src/xml/web_widget_image_webcam.xml:0
#, python-format
msgid "WebCam"
msgstr ""

#. module: web_widget_image_webcam
#. odoo-javascript
#: code:addons/web_widget_image_webcam/static/src/js/webcam_widget.js:0
#, python-format
msgid "WebCam Booth"
msgstr ""
1 change: 1 addition & 0 deletions web_widget_image_webcam/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import ir_config_parameter
15 changes: 15 additions & 0 deletions web_widget_image_webcam/models/ir_config_parameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2019 Siddharth Bhalgami <[email protected]>
# Copyright 2019-Today: Druidoo (<https://www.druidoo.io>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from odoo import api, models


class IrConfigParameter(models.Model):
_inherit = "ir.config_parameter"

@api.model
def get_webcam_flash_fallback_mode_config(self):
return self.sudo().get_param(
"web_widget_image_webcam.flash_fallback_mode", default=False
)
3 changes: 3 additions & 0 deletions web_widget_image_webcam/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
16 changes: 16 additions & 0 deletions web_widget_image_webcam/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
By default, the module works with all [major
browsers](https://github.com/jhuckaby/webcamjs/blob/master/DOCS.md#browser-support).

An important note for **Chrome 47+** users - this module only works with
websites delivered over SSL / HTTPS. Visit this for [more
info](https://github.com/jhuckaby/webcamjs/blob/master/DOCS.md#important-note-for-chrome-47).

But, If you still want this module to work with websites without SSL /
HTTPS. Here is the steps to do it easily (Always run in Adobe Flash
fallback mode, but it is not desirable).

Set the configuration parameter
`web_widget_image_webcam.flash_fallback_mode` to `1` (note that
configuration will be applied after browser reload).

Its done! Now this module also work with websites without SSL / HTTPS.
7 changes: 7 additions & 0 deletions web_widget_image_webcam/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Siddharth Bhalgami \<[email protected]\>
- Kaushal Prajapati \<[email protected]\>
- [Druidoo](https://www.druidoo.io):
- Iván Todorovich
- Shivam Soni \<[email protected]\>
- [Trobz](https://www.trobz.com):
- Phan Hong Phuc \<[email protected]\>
2 changes: 2 additions & 0 deletions web_widget_image_webcam/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of the image widget and allows to
take snapshots with WebCam.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading