diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-10-27 13:47:08 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-10-27 13:47:08 +0100 |
| commit | e6a3852c1fb64fd8f1295f99e7933cdec9b7efb7 (patch) | |
| tree | 178a00a2bfd9e8ff095b0c64014aae38f093c212 | |
| parent | 780cfba3c68d8183dc338f48e95c65b95a3c79e3 (diff) | |
[FIX] website: child menus without url.
This is possible to have a child menu without URL.
The condition checking if the `active` class
must be added or not must take that into account.
opw-653132
| -rw-r--r-- | addons/website/views/website_templates.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 2c24ed98d31..5c71266af9d 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -40,7 +40,7 @@ </a> </li> <li t-if="submenu.child_id" t-attf-class="dropdown #{ - (submenu.url and submenu.url != '/' and any([request.httprequest.path == child.url.replace('/page/website.', '/page/') for child in submenu.child_id]) or + (submenu.url and submenu.url != '/' and any([request.httprequest.path == child.url.replace('/page/website.', '/page/') for child in submenu.child_id if child.url]) or (submenu.url and request.httprequest.path == submenu.url.replace('/page/website.', '/page/'))) and 'active' }"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> |
