Skip to content

[19.0][MIG] barcode_action#1290

Draft
bosd wants to merge 33 commits into
OCA:19.0from
bosd:19.0-mig-barcode_action
Draft

[19.0][MIG] barcode_action#1290
bosd wants to merge 33 commits into
OCA:19.0from
bosd:19.0-mig-barcode_action

Conversation

@bosd

@bosd bosd commented May 14, 2026

Copy link
Copy Markdown
Contributor

Standard migration using odoo-module-migrator /ocabot migration barcode_action .

etobella and others added 26 commits May 14, 2026 22:51
Currently translated at 95.8% (23 of 24 strings)

Translation: server-ux-14.0/server-ux-14.0-barcode_action
Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-barcode_action/es/
Currently translated at 100.0% (24 of 24 strings)

Translation: server-ux-14.0/server-ux-14.0-barcode_action
Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-barcode_action/pt/
Currently translated at 100.0% (24 of 24 strings)

Translation: server-ux-16.0/server-ux-16.0-barcode_action
Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-barcode_action/es/
Currently translated at 100.0% (23 of 23 strings)

Translation: server-ux-17.0/server-ux-17.0-barcode_action
Translate-URL: https://translation.odoo-community.org/projects/server-ux-17-0/server-ux-17-0-barcode_action/it/
bosd and others added 5 commits May 14, 2026 22:51
* Reject private (``_``-prefixed) method names on ``barcode.action``:
  the OWL widget invokes the configured method through ``orm.call``
  with the current user's rights, so without this constraint anyone
  who can open a barcode wizard could trigger arbitrary internal
  methods (``unlink``, ``_compute_*``, ...) on any model they can
  read.
* Catch errors raised by the configured method in the JS widget and
  surface them through the notification service instead of letting
  the rejection bubble up silently.
* Replace the previously empty widget template with a scanner-style
  visual cue (animated red line over a stylised barcode) so users
  can tell at a glance that the wizard is actively listening for a
  scan. The animation honours ``prefers-reduced-motion``.
* Replace the legacy OCA cube ``static/description/icon.png`` with
  the new OCA logo shipped by ``maintainer-tools``.
* Add an OWL systray entry mirroring the
  ``document_quick_access_launcher`` pattern: a barcode icon in the
  top bar that opens the ``barcode.action`` wizard pre-configured
  for the ``find_res_partner_by_ref_using_barcode`` example, so the
  module's barcode launcher is reachable from anywhere in the
  client.
@bosd
bosd force-pushed the 19.0-mig-barcode_action branch from c58c472 to 6b51ba3 Compare May 14, 2026 20:52
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.