489566d4bb5f63b5391b18c5e4c02c821e69ddeb
When deleting a page, `search_url_dependencies` tries to trawl through all models to see if they might have a link to the page being deleted. However if the user invoking that function does not have access to a model with an HTML field, it raises an error. Given pages are managed by website designers which are *not administrators* there is no reason to believe the current user has access to every model in the database (not that even admins do these days). Since `search_url_dependencies` is a best-effort search anyway, just ignore any model to which the current user doesn't have access. An alternative would be to do the search in sudo mode, but that doesn't seem necessary, and could even be problematic if a match is found: - it might leak information the user should not access (because the record name is returned, as well as the model & field names) - it will trigger further access errors (because links to problematic records are provided, on which the user might want to click) closes odoo/odoo#127973 X-original-commit: 47a69a186bc415bf61a523da9686ca96c0beb74e Signed-off-by: Romain Derie (rde) <rde@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, ...
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.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%