The QR Code Scanner module for Odoo allows users to scan QR codes containing predefined data formats and automatically create records in the res.partner
model. If a record already exists for the scanned QR code, an error message will be displayed.
- Scan QR codes to create partner records.
- Prevents duplicate partner records for the same QR code.
To install and use this module, follow these steps:
-
Download the module from GitHub Repository.
-
Extract the module files to your Odoo addons directory.
-
Restart the Odoo server to load the new module:
odoo-bin -c /path/to/odoo.conf
-
Log in to your Odoo instance as an administrator.
-
Go to the "Apps" menu and search for "QR Code Scanner."
-
Install the module.
Once the module is installed, you can use the QR Code Scanner functionality as follows:
Navigate to the QR CODE menu.
Click on the "Tap To Scan" button or option (customize this according to your module's UI).
Use your device's camera(if laptop then the webcam will automatically opens) to scan the QR code.
The module will process the scanned data and attempt to create a new partner record or update an existing one.
Example of QR CODE Data ''' Full name: Muhammad Sajjad
ID: 002389521NE041
Province: NAMIBE
Birthday: 08/04/2007
Sex: Feminino
Marital status: SOLTEIRO
ID issue date: 08/12/2017
ID Exp date: 08/12/2027
Issue Province: LUANDA ''' Example QR Code in static/img/example_qr.png Anyone can make changes in controller file depend upon the data in qr code
If a record is successfully created or updated, you will see a success message.
If a record with the same QR code data already exists, you will receive an error message indicating that duplicates are not allowed.
Support and Issues If you encounter any issues, have questions, or need assistance, you can contact me on [email protected].
License This Odoo module is released under the MIT License.
Acknowledgments This module was developed by Muhammad Sajjad.