20bab327d478cfe8c7cdf95f74d4e1598b21e7b7
On a new database, logged as administrator, installing ``website_slides`` commonly (but not systematically) leads to a 403 error when the module install redirects to the slides index (``/slides``). The issue here is the installation of the slides module deletes the existing routing map, which needs to be regenerated. The regeneration is performed at the start of URL dispatching *before authentication* but accesses ``request.env` in order to look up the list of installed modules, which generates and caches (due to env being a lazy_property) an ``Environment(cr, None, context)``. Once regeneration and auth are done the controller is executed with ``request.env`` still being set to ``Environment(cr, None, context)`` and thus the first tentative access (search) to an object blowing up with an AccessError. The next request or an initial request not accessing ``request.env`` will work fine as they'll reuse the routing map generated by the initial request. Fixed by just getting the set of installed modules from the registry.
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, 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.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./odoo.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./odoo.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%