c209c250d772005132b430c6a3bf3813cd6d3093
Before this commit, the URL of the bootstraped homepage for a new website could be '/-1' instead of '/'. Indeed, creating a new website ends up calling `page.copy` which try to get an unique URL for the website (to avoid duplicated URL after copy). Typically, the copied page will have a suffix (-X). But `get_unique_path` in charge of doing that is based on `get_current_website` method which will/could return a wrong website (not the one we created). For instance the one forced in session after using the website switcher or creating a website or installing a theme. As those website already have (most likely) a homepage '/', get_unique_path will create the bootstraped homepage with '/-1' as URL. Step to reproduce (among others): - Create a new website in backend through res.settings screen - Create another new website, it's homepage will be '/-1'. - Repeat indefinitely, every two website created, the bug will appear. (One out of two, the bug won't appear since it will try to get an unique URL on the previously created website which only has '/-1' so '/' is assumed unique) closes odoo/odoo#33372 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%