Skip to content

[fork-CI] [20.0][MIG] web_systray_button_init_action: Migration to 20.0 - #15

Open
dnplkndll wants to merge 13 commits into
20.0from
20.0-mig-web_systray_button_init_action
Open

dnplkndll wants to merge 13 commits into
20.0from
20.0-mig-web_systray_button_init_action

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Oct 1, 2026 •

Copy link
Copy Markdown

Port of web_systray_button_init_action from 19.0 (OCA/web#3583, unmerged) to 20.0. Follows the OCA migration guide.

Two things a reviewer would not get from the diff:

  • The tours would have thrown at registration. 20.0 added tourRegistry.addValidation(t.strictObject({steps, url})), making the test: true key both tours carried an unknown key on a strict schema. No core 20.0 tour passes it.
  • owl3-migration rewrites useService("action") to usePlugin(ActionManagerPlugin), importing a name that does not exist in 20.0 (the class is ActionPlugin). Here the line was dead anyway, so it is gone rather than restored.

CI note: test with Odoo/test with OCB are red on a core issue, not this module — OCA CI runs --skip-auto-install, which on 20.0 leaves core's own web.assets_frontend SCSS unbuildable (rgba($color, $alpha) must be a color). Reproduces on bare core with zero addons.

The tour test additionally cannot run under OCA CI: web.assets_tests holds core's user_switch_tour.js, which imports @bus/workers/websocket_worker, and bus is auto-install. Declaring bus would make CI green but misrepresent the dependency, so it is left out; the behaviour was verified by hand on runboat instead.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

@dnplkndll
dnplkndll force-pushed the 20.0-mig-web_systray_button_init_action branch from 1785d6d to 87a41cc Compare October 1, 2026 19:44
* Dropped `test: true` from the tours: 20.0 validates registration with
  t.strictObject({steps, url}), so an unknown key throws.
* Declared web_tour, previously present only via auto-install.
* QWeb bare identifiers -> this.showHomeButton / this.onClickInitAction.
* fa fa-lg fa-home -> oi oi-lg + data-icon="home".
* Dropped the unused useService("action").

Assisted-by: Claude Opus 5
@dnplkndll
dnplkndll force-pushed the 20.0-mig-web_systray_button_init_action branch from 87a41cc to f523f48 Compare October 2, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants