2f361bec36dff09181b96d140d62c477cdf013a1
Before this commit, every model having website_id would have the default `set null` as ondelete value for that field. Exception for `ir.ui.view` and `website.redirect` which are set to `cascade`. This meant that deleting a website would basically transform all its specific records into generic ones. That would lead to unwanted behavior, such as multiple `ir.attachment` with same URL, when 2 websites had been theme-customized. Deleting one of the website would result in later crashes when trying to open theme customization in the remaining website(s), since those website would find their specific scss custom attachment as well as the generic one from the deleted website. Probably more behavior might be problematic when deleting a website before this commit. To summarize the choice of this commit implementation, every model not existing outside website module are set to `cascade` (website.redirect, website.menu, product.wishlist..). The rest should be in restrict, as we don't want to delete a whole forum, blog or job, which should probably be managed case by case to decide what to do. Thus, restrict is a good choice to notify user of what should be handled. Some exception remains, ir.ui.view should be delete on cascade while sale.order should be set to null. opw-2038414 opw-2035249 closes odoo/odoo#35398 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%