Skip to Content
Menu

Web Camera QRCode Widget

by
Odoo

35.07

v 15.0 Third Party 30
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1363
Technical Name web_camera_qrcode_widget
LicenseOPL-1
Versions 12.0 13.0 14.0 15.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1363
Technical Name web_camera_qrcode_widget
LicenseOPL-1
Versions 12.0 13.0 14.0 15.0

Web Camera QRCode Widget

网页扫码小部件


Features 功能:


  • Odoo field widget.
  • Use the camera to identify QR codes and barcodes.
  • Support multiple cameras. The selected camera will be cached in a cookie.
  • Support the identification of multiple QR codes or barcodes.
  • Support mobile browser.
  • Odoo字段小部件。
  • 使用摄像头识别二维码和条形码。
  • 支持多个摄像头。选定的相机将缓存在cookie中。
  • 支持识别多个二维码或条形码。
  • 支持手机浏览器。

Related technology 相关技术:


  • ZXing-js
  • See Live Preview in browser.
  • Used to identify a single barcode or QR code.
  • Supported Formats:
    1D product 1D industrial 2D
    UPC-A Code 39 QR Code
    UPC-E Code 128 Data Matrix
    EAN-8 ITF Aztec
    EAN-13 RSS-14 PDF 417
  • pyzbar
  • Project description
  • Used to identify multiple barcodes or QR codes.
  • Supported Formats:
    1D product 1D industrial 2D
    UPC-A Code 39 QR Code
    UPC-E Code 128 PDF 417
    EAN-8
    EAN-13
  • ZXing-js
  • 在浏览器中查看实时预览。
  • 用于识别单个条形码或二维码。
  • 支持的格式:
    1D product 1D industrial 2D
    UPC-A Code 39 QR Code
    UPC-E Code 128 Data Matrix
    EAN-8 ITF Aztec
    EAN-13 RSS-14 PDF 417
  • pyzbar
  • 项目介绍
  • 用于识别多个条形码或二维码。
  • 支持的格式:
    1D product 1D industrial 2D
    UPC-A Code 39 QR Code
    UPC-E Code 128 PDF 417
    EAN-8
    EAN-13

How to install and use 如何安装和使用:


Document path 文档路径:
/doc/index.rst

Camera configuration 拍摄配置:


  • Screenshot
  • Description
  • Parameter Description
    Auto start camera The default is true.
    Need confirmation The default is true. Enabling this option requires confirmation of the scan results. If this option is turned off, the dialog will be automatically closed after successful scanning.
    Flip Horizontal The default is false. When on, the camera flips horizontally.
    Flip Vertical The default is false. When on, the camera flips vertically.
    Identify multiple The default is false. Enable this option to recognize multiple barcodes and QR codes at the same time.
    Select multiple The default is false. You need to enable 'identify multiple' to display this option. Enable this option to obtain multiple scan results.
    Mobile devices only use back camera The default is true, which is valid only on mobile devices. If this option is enabled, only the back camera can be used on the mobile device. Turn this option off to select a camera on your mobile device.
  • 截图
  • 描述
  • 参数 描述
    自动启动摄像头 默认为 True。
    需要确认结果 默认为 True。启用此选项,需要确认扫描结果。关闭此选项,扫描成功后,将会自动关闭弹框
    水平翻转 默认为 False。启用此选项,则会水平翻转摄像头。
    垂直翻转 默认为 False。启用此选项,则会垂直翻转摄像头。
    识别多个 默认为 False。启用此选项,可以同时识别多个条形码和二维码。
    选择多个 默认为 False,需要启用“识别多个”才能显示此选项。启用此选项,可以获取多个扫描结果
    移动设备只使用后置摄像头 默认为 True,仅在移动设备上有效。启用此选项,则会在移动设备上只能使用后置摄像头。关闭此选项,可以在移动设备上选择摄像头。

Screenshot of the latest version 最新版本的截图



Recording screen 录屏


  • PC browser uses zxing to identify a single barcode or QR code

    PC浏览器使用ZXing识别单个条码或二维码


  • PC browser uses pyzbar to recognize multiple barcodes or QR codes

    PC浏览器使用pyzbar识别多个条码或二维码


  • The Android browser uses pyzbar to identify a single barcode or QR code

    Android浏览器使用pyzbar识别单个个条码或二维码


    The Android browser uses pyzbar to recognize multiple barcodes or QR codes

    Android浏览器使用pyzbar识别多个条码或二维码



  • The IOS browser uses pyzbar to identify a single barcode or QR code

    IOS浏览器使用pyzbar识别单个个条码或二维码


    The IOS browser uses pyzbar to recognize multiple barcodes or QR codes

    IOS浏览器使用pyzbar识别多个条码或二维码


Web Camera QRCode Widget

Note:

  • When using the WebRTC API, the browser requires HTTPS. Any page that uses this library should be served via HTTPS.
  • Chrome is recommended.

How to install:

  1. Click on the menu "Apps".
  2. Select "Extra" in the filter popup menu.
  3. Enter "Web QRCode Widget" in the search input box.
  4. Please install the module "Web QRCode Widget" in the search results.

How to use in form view:

  • You can directly modify the form view in odoo debug mode.
  • You can inherit the view and use position="attributes" to add widget="qr_code" to the field.

Example1:Modify the form view in debug mode

<field name="arch" type="xml">
    <form string="View name">
        <field name="barcode" widget="qr_code" />
    </form>
</field>

Example2:Inherit the view to add attributes to the field

<xpath expr="//field[@name='barcode']" position="attributes">
    <attribute name="widget">qr_code</attribute>
</xpath>

Bugs and requirements:

You can send an email to rain.wen@outlook.com to submit bugs and requirements to me.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.