mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
598fcffbae57c0eab422db669e75f52dd5c267e4
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>
Description
No description provided
Languages
SCSS
49.6%
Python
25.4%
JavaScript
24.4%
Rich Text Format
0.5%