Skip to main content
Odoo Community Association

Web Ir Actions Client Scan

Beta License: LGPL-3 OCA/stock-logistics-barcode Translate me on Weblate Try me on Runboat

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="&quot;{ 'method': 'example_method' }&quot;"/>
</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

Authors

  • Tecnativa

Contributors

  • Tecnativa:

    • Juan Carlos Oñate

    • Víctor Martínez

    • Carlos Roca

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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:

CarlosRoca13

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.

Release files for odoo-addon-web-ir-actions-client-scan 18.0.1.0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-web-ir-actions-client-scan 18.0.1.0.0.4
File Interpreter ABI Platform
odoo_addon_web_ir_actions_client_scan-18.0.1.0.0.4-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_web_ir_actions_client_scan-18.0.1.0.0.4-py3-none-any.whl

Download URL odoo_addon_web_ir_actions_client_scan-18.0.1.0.0.4-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdc5fea584083c0d2eca3fe0bb8f7a08009903429bbedaeee4f86201d6316565
BLAKE2b-256 checksum
How to use checksums
320b156c2587c2b8fc29d2450849f444cf00b892fd682f7d0908e67b4e8fd862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

18.0.1.0.0.4 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page