Skip to content

[19.0][MIG] base_user_show_email: Migration to 19.0 - #996

Open
jcadhoc wants to merge 21 commits into
OCA:19.0from
adhoc-dev:19.0-t-71192-jc
Open

[19.0][MIG] base_user_show_email: Migration to 19.0#996
jcadhoc wants to merge 21 commits into
OCA:19.0from
adhoc-dev:19.0-t-71192-jc

Conversation

@jcadhoc

@jcadhoc jcadhoc commented Sep 1, 2026

Copy link
Copy Markdown

Supersedes #867 (same branch, plus one fix commit), which the stale bot closed
after 4 months without review. Migration work is @augusto-weiss'; this PR only
adds a fix on top and reopens the discussion.

Migration

Standard migration of base_user_show_email to 19.0: manifest version bump and
removal of the res_users_view.xml form-view tweaks that core now covers.

Fix on top

On the login page the renamed label and the core user switcher button render
glued together as LoginChoose a user.

Core renders the label as:

<label for="login" class="form-label d-flex justify-content-between">Email</label>

and the user switcher portals its "Choose a user" button straight into that
element — addons/web/static/src/core/user_switch/user_switch.xml,
t-portal="'label.form-label'". This module replaces the whole label to rename
it to "Login" and dropped d-flex justify-content-between along the way, so the
portalled button loses its spacing. The password label right below, untouched by
this module, keeps rendering correctly.

The switcher only appears once the browser has stored logins for the database,
so the glitch is only visible to returning users.

Same fix for 18.0, where the module is already merged: #995

Test plan

  1. Install base_user_show_email.
  2. Log in once so the user switcher stores the login, then log out.
  3. Reload /web/login: the "Choose a user" button should sit at the right end
    of the label row, aligned the same way as "Reset password" is on the
    password label.

Internal ref: https://www.adhoc.inc/odoo/project.task/71192

Patrick Tombez and others added 21 commits November 17, 2025 19:25
Currently translated at 100.0% (2 of 2 strings)

Translation: server-auth-16.0/server-auth-16.0-base_user_show_email
Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-base_user_show_email/it/
Core renders the login label as:

    <label for="login" class="form-label d-flex justify-content-between">Email</label>

and the user switcher component portals its "Choose a user" button
straight into that element (web/static/src/core/user_switch/user_switch.xml,
`t-portal="'label.form-label'"`).

This module replaced the whole label to rename it to "Login" and dropped
`d-flex justify-content-between` in the process, so the portalled button
lost its spacing and ended up glued to the label text
("LoginChoose a user"). The password label right below, untouched by this
module, keeps rendering correctly.

Keep the classes core sets on the label so the switcher button is laid
out as intended.
@OCA-git-bot OCA-git-bot added series:19.0 mod:base_user_show_email Module base_user_show_email labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_user_show_email Module base_user_show_email series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants