Add an action to scan
Project description
Web Ir Actions Client Scan
This Odoo module adds a custom barcode scanning action within the web backend. Its purpose is to allow the user to scan a code (for example, using a camera or a scanner) and call a server side method defined in the action params via rpc.
Table of contents
Usage
You can integrate the scanner into your module by defining a client action:
<record id="action_scan_example" model="ir.actions.client">
<field name="name">Scan Code</field>
<field name="tag">web_ir_actions_client_scan.scan</field>
<field name="res_model">example_model</field>
<field name="params" eval=""{ 'method': 'example_method' }""/>
</record>
The parameter is as follows:
method: Used to determine which method of the res_model will be executed during scanning pocess.
Then trigger it from a button:
<button name="%(action_scan_example)d"
type="action"
string="Scan Code"
class="btn-primary"/>
The action opens a popup where you will have the option to scan a barcode. After completing the scan, the method defined in the action parameters will be executed.
The signature of the method should be like in next code:
@api.model
def example_method(self, barcode):
pass
Bug Tracker
Bugs are tracked on GitHub 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.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Juan Carlos Oñate
Víctor Martínez
Carlos Roca
Maintainers
This module is maintained by the OCA.
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.
Current maintainer:
This module is part of the OCA/stock-logistics-barcode project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_web_ir_actions_client_scan-18.0.1.0.0.4-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_web_ir_actions_client_scan-18.0.1.0.0.4-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdc5fea584083c0d2eca3fe0bb8f7a08009903429bbedaeee4f86201d6316565
|
|
| MD5 |
ffc58dc2fc426328c7f2971d93bcdbfa
|
|
| BLAKE2b-256 |
320b156c2587c2b8fc29d2450849f444cf00b892fd682f7d0908e67b4e8fd862
|