Web Camera QRCode Widget
Features:
- Odoo field widget.
- Use web camera to identify QR code and barcode
- Supports multiple cameras. The selected camera will be cached in the cookie as default.
- Automatically set focus, support barcode scanner.
How to install and use:
Document path: /doc/index.rst
Screenshot of the latest version
The historical version is displayed for reference.
Web Camera QRCode Widget
Features:
- Use web camera recognition.
- SupportSupport QR code and barcode.
- Automatically set focus, support barcode scanner.
- Use zxing-js .
Supported Formats:
1D product | 1D industrial | 2D |
---|---|---|
EAN-8 | Code 39 | QR Code |
EAN-13 | Code 128 | Data Matrix |
ITF | PDF 417 | |
RSS-14 |
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:
- Click on the menu "Apps".
- Select "Extra" in the filter popup menu.
- Enter "Web QRCode Widget" in the search input box.
- 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="qr_code" widget="qr_code" options="{'confirm': true, 'select':true, 'mobile_dialog':true}"/> </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> <attribute name="options">{'need_confirm': true, 'autoplay':true}</attribute> </xpath>
Options description:
-need_confirm | Do you need to confirm after scanning, Default true |
-autoplay | Automatically start the camera, Default true |
- confirm:
- default confirm= true .
- confirm:true,The scan result is displayed in the dialog box. Click the OK button to return.
- confirm:false,The scan result is not displayed in the dialog box, and the dialog box is closed directly when the scan is successful.
- select:
- default select= true .
- select:true,Can select multiple cameras.
- select:false,Only cameras with device serial number 0 can be used.
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
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Support 1D barcode
Does it support 1D Barcode too ? If it does, what format of 1D barcode does it support ?
Re: Support 1D barcode
If you are using the enterprise version, the odoo application on your phone can support barcodes. The web terminal currently only supports QR codes.
You need to develop a module that supports both barcode and QR code on the web. If you confirm that you need to develop it, you can contact me for customization.