diff options
| author | Patrick Hoste <pko@odoo.com> | 2020-03-03 14:24:00 +0000 |
|---|---|---|
| committer | Patrick Hoste <pko@odoo.com> | 2020-03-31 06:34:45 +0000 |
| commit | bd99cc24b145dcb2f4e7453050a5dc6d814f0c21 (patch) | |
| tree | 4dd2e680d3f1e8d02e05b373e9562cd5fc8a18bd /addons/website_event/static/src/xml | |
| parent | d2e02976e2934274cdc7a37616713ba6166ca1b7 (diff) | |
[IMP] website_event(_track): improve website and track menus behavior
PURPOSE
Before this commit to activate the sub-menu, the tracks and the track proposal
you had to do it on the event form view. After this commit you'll have to go
on the event website page to change those options (through the customize dropdown)
SPECIFICATION
Remove the 'website_menu' / 'website_track' / 'website_track_proposal' from the
event form view and create a toggle option in the customize dropdown on the event
website page instead.
LINKS
Task ID : 2198660
PR : #46659
Diffstat (limited to 'addons/website_event/static/src/xml')
| -rw-r--r-- | addons/website_event/static/src/xml/customize_options.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/website_event/static/src/xml/customize_options.xml b/addons/website_event/static/src/xml/customize_options.xml new file mode 100644 index 00000000000..539a3ef028f --- /dev/null +++ b/addons/website_event/static/src/xml/customize_options.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<templates xml:space="preserve"> + + <t t-name="website_event.customize_options" id="event_options"> + <li class="dropdown-header">Event Specific</li> + <a href="#" name="display-website-menu" class="dropdown-item" role="menuitem"> + <label class="o_switch" for="display-website-menu"> + <input id="display-website-menu" type="checkbox"/> + <span/> + Event Sub-menu + </label> + </a> + </t> + +</templates> |
