Skip to content

[20.0][MIG] barcode scanner - #26

Open
Saran440 wants to merge 14 commits into
OCA:20.0from
ecosoft-odoo:20.0-mig-barcode_scanner
Open

Saran440 wants to merge 14 commits into
OCA:20.0from
ecosoft-odoo:20.0-mig-barcode_scanner

Conversation

@Saran440

@Saran440 Saran440 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What's change:

  • Odoo20 use owl3, so
    • useState/reactive to proxy, this. in templates, t-esc to t-out
    • Font Awesome icons to Material Symbols (<i class="oi" data-icon="..."/>)
  • barcodeApi.readGroup is replaced by formattedReadGroup, because orm.readGroup
    was removed in 20.0. Results now use keys like quantity:sum.

szalatyzuzanna and others added 14 commits November 6, 2026 11:51
Currently translated at 100.0% (14 of 14 strings)

Translation: barcode-interface-18.0/barcode-interface-18.0-barcode_scanner
Translate-URL: https://translation.odoo-community.org/projects/barcode-interface-18-0/barcode-interface-18-0-barcode_scanner/it/
Currently translated at 100.0% (14 of 14 strings)

Translation: barcode-interface-18.0/barcode-interface-18.0-barcode_scanner
Translate-URL: https://translation.odoo-community.org/projects/barcode-interface-18-0/barcode-interface-18-0-barcode_scanner/es/
Currently translated at 100.0% (14 of 14 strings)

Translation: barcode-interface-18.0/barcode-interface-18.0-barcode_scanner
Translate-URL: https://translation.odoo-community.org/projects/barcode-interface-18-0/barcode-interface-18-0-barcode_scanner/es_VE/
The barcode service now keeps a reactive count of the mounted components
that read scans through useBarcode, so a scan source such as a camera
button can offer itself only while the screen on display reads one,
without knowing the screens of every feature module.
Currently translated at 14.2% (2 of 14 strings)

Translation: barcode-interface-18.0/barcode-interface-18.0-barcode_scanner
Translate-URL: https://translation.odoo-community.org/projects/barcode-interface-18-0/barcode-interface-18-0-barcode_scanner/fr/
Odoo 20 ships Owl 3, so the client code is adapted with the
owl3-migration and material-symbols upgrade_code scripts plus
manual fixes:

- proxy instead of useState/reactive, this. in templates, t-out
- useEnv from @web/owl2/utils, NotificationPlugin in the dispatcher
- barcodeApi.readGroup is replaced by formattedReadGroup, as
  orm.readGroup no longer exists (aggregates such as quantity:sum)
- menu tile icons are Material Symbols names rendered with the oi
  class, as FontAwesome is no longer loaded
- an "error" feedback signal is notified as "danger", the only
  error type the notification plugin accepts
- the home screen greeting falls back to the browser hour when the
  user time zone is unknown to the browser

Services keep their registry names so feature modules keep working.
The JS tests are ported to Owl 3, a flow test of the scanner app is
added, and the HOOT filter only selects this module's suites.

Assisted-by: Claude Opus 5.5 + Codex Sol 6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants