Arthur Detroux (ard) 598fcffbae [IMP] website: warn users when a website has no domain
This commit disables the warning (introduced by the community commit)
when test-themes is installed, as a lot of websites are created and are
not necessary when testing the different themes.

-- ORIGINAL COMMIT MESSAGE --

Prior to this commit, if a website does not have a domain, nothing tells
the user that this is a misconfiguration that can lead to broken
behaviours. For example, here are the steps to reproduce:

- Have two website (X and Y)
- Website Y does not have a domain
- Tab 1 has Website X selected
- User opens a new tab
- Tab 2 has Website X selected as well
- User switches tab 2 to Website Y
- No redirection happens
- User switches back to tab 1
- User opens the HTML editor for Website X
- Website X content is displayed
- User saves
- Content is saved on Website Y

This is pretty hard to fix as a lot of the python flow for Website uses
`get_current_website` which will uses the session's "force_website_id"
in priority.

In any case, we consider having multiple websites sharing the same
domain (or having no domains at all) a misconfiguration. Therefore, we
should warn the user of so.

This commit adds a tooltip on the website switcher for websites that do
not have a domain set. It also adds a notification recommending users
close other tabs if they switch website.

opw-3374214

closes odoo/design-themes#675

Related: odoo/odoo#128979
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-07-28 14:47:44 +02:00
2021-12-13 13:17:53 +00:00
2022-07-07 13:29:20 +02:00
2021-05-10 15:45:35 +02:00
S
Description
No description provided
764 MiB
Languages
SCSS 49.6%
Python 25.4%
JavaScript 24.4%
Rich Text Format 0.5%