16f9375dab793b802fb13467d6b70821373d3df2
On a eCommerce page were there was no SEO optimization change: - Customize > Activate "eCommerce categories" - Customize > Activate "Colapsible category list" - Promote > Optimize SEO > Change description > Save Nothing happens. Actually, an SQL error is raised because of the `ondelete='restrict'` set at: https://github.com/odoo/odoo/blob/897feb553e6ef75af9434cb77436b26abde3a761/odoo/addons/base/models/ir_ui_view.py#L212 In this case, we have the following structure: ``` View 1 | ---> View 2 (Website-specific) | ---> View 3 (Website-specific) ``` For example: ``` Products | ---> eCommerce Categories (Website-specific) | ---> Collapsible Category List (Website-specific) ``` Since the inherited view (View 2) is website-specific, we duplicate it and try to unlink it. However, this view has children, which raises the error. To solve the issue, we re-attach the children of the inherited view to its copy. In a realistic situation, the children of a website-specific view should also be website-specific, so there is no need to apply the 'copy or re-attach' logic recursively. We end up with: ``` View 1 (Website-specific, duplicated) | ---> View 2 (Website-specific, duplicated) | ---> View 3 (Website-specific) ``` opw-1997946 closes odoo/odoo#33787 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.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%