Skip to content

Multiple pop-ups open when repeatedly clicking account toggle without an Odoo account #334

Description

@AnmollGarg

Describe the bug
When a user without an Odoo account repeatedly clicks the local switch/toggle button on the side navigation bar, the application opens multiple instances of the pop-up modal instead of restricting it to a single pop-up.

To Reproduce
Steps to reproduce the behavior:

  1. Open App with Local Account Only & does not have an associated Odoo account in the connected accounts.
  2. Go to the side navigation bar.
  3. Click the local switch/toggle button multiple times in quick succession.
  4. See error: Multiple pop-up windows are spawned on the screen simultaneously.

Expected behavior
If the user is logged into a local account and does not have a connected Odoo account, the toggle button should either be hidden entirely, or it should open a single pop-up prompting the user to add an Odoo account. In either case, clicking the button multiple times must not open multiple overlapping pop-ups.

Additional context
This edge case specifically triggers because the user does not have an Odoo account, so the system cannot complete the switch and instead repeatedly fires the pop-up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions