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:
- Open App with Local Account Only & does not have an associated Odoo account in the connected accounts.
- Go to the side navigation bar.
- Click the local switch/toggle button multiple times in quick succession.
- 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.
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:
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.