Steps to reproduce: 1) start from a clean database (http_routing should not be installed). 2) go to the app menu and install project (don't install via `-i`!!). 3) traceback: `request` has not attribute `is_frontend` while rendering a template. The `is_frontend` attribute on request is set by the http_routing module. At the moment the "install now" button is clicked, http_routing was not installed so the `is_frontend` attribute was not set. FF to the end of the installation: the registry is reloaded to include the modules that have been installed, http_routing among them. We are in a tricky situation: (1) there is a request, (2) http_routing is installed and (3) the `is_frontend` attribute is missing from the request. This situation is illegal, when http_routing is installed, the `is_frontend` attribut should always be set. In this work we reset the missing attributes using sensitive default values via post-init hooks. closes odoo/odoo#87684 Signed-off-by: Julien Castiaux <juc@odoo.com>
20 lines
497 B
Python
20 lines
497 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Web Routing',
|
|
'summary': 'Web Routing',
|
|
'sequence': '9100',
|
|
'category': 'Hidden',
|
|
'description': """
|
|
Proposes advanced routing options not available in web or base to keep
|
|
base modules simple.
|
|
""",
|
|
'data': [
|
|
'views/http_routing_template.xml',
|
|
'views/res_lang_views.xml',
|
|
],
|
|
'post_init_hook': '_post_init_hook',
|
|
'depends': ['web'],
|
|
'license': 'LGPL-3',
|
|
}
|