Files
odoo_source/addons/website_event/views/snippets/snippets.xml
T
qsm-odoo eed3f1bc59 [FIX] website, *: hide page options for non-designer users
*: website_blog, website_crm_partner_assign, website_customer,
   website_event, website_event_exhibitor, website_event_meet,
   website_event_track, website_forum, website_hr_recruitment,
   website_membership, website_sale, website_sale_loyalty,
   website_sale_slides, website_slides, website_slides_forum

With commit [1], the "customize_show" options were moved in edit mode.
They were wrongly displayed for non-designer users. Trying to use those
would throw a warning at the user.

[1]: https://github.com/odoo/odoo/commit/17a8a37e9bfc5b787d9666597d43e63f0064919f

closes odoo/odoo#103142

X-original-commit: f2ca62a4a9ccb6713a39c100fc87c112619eac41
Related: odoo/enterprise#32768
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-12 10:35:05 +02:00

89 lines
4.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="remove_external_snippets" inherit_id="website.external_snippets">
<xpath expr="//t[@t-install='website_event']" position="replace"/>
</template>
<template id="snippets" inherit_id="website.snippets">
<xpath expr="//t[@id='event_upcoming_snippet_hook']" position="replace">
<t t-snippet="website_event.s_events" t-thumbnail="/website/static/src/img/snippets_thumbs/s_event_upcoming_snippet.svg"/>
</xpath>
</template>
<template id="snippet_options" inherit_id="website.snippet_options" name="Event snippet options">
<xpath expr="." position="inside">
<!-- Events page -->
<div data-selector="main:has(.o_wevent_events_list)" data-page-options="true" groups="website.group_website_designer" data-no-check="true" string="Events Page">
<we-select string="Layout" data-no-preview="true" data-reload="/">
<we-button data-customize-website-views="website_event.opt_events_list_columns">Grid</we-button>
<we-button data-customize-website-views="">List</we-button>
</we-select>
<we-checkbox string="Cards"
class="o_we_sublevel_1"
data-customize-website-views="website_event.opt_events_list_cards"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Templates"
class="o_we_sublevel_1"
data-customize-website-views="website_event.opt_events_list_categories"
data-no-preview="true"
data-reload="/"/>
<we-row string="Top Bar Filter" class="o_we_full_row">
<we-button string="Date"
data-customize-website-views="website_event.event_time"
data-no-preview="true"
data-reload="/"/>
<we-button string="Countries"
data-customize-website-views="website_event.event_location"
data-no-preview="true"
data-reload="/"/>
</we-row>
<we-checkbox string="Sidebar"
data-name="events_sidebar_opt"
data-customize-website-views="website_event.opt_index_sidebar"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="About Us"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_about_us"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Follow Us"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_follow_us"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Photos"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_photos"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Quotes"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_quotes"
data-no-preview="true"
data-reload="/"/>
</div>
<!-- Event page -->
<div data-selector="main:has(.o_wevent_event_title)" data-page-options="true" groups="website.group_website_designer" data-no-check="true" string="Event Page">
<we-checkbox string="Fold Tickets Details"
data-customize-website-views="website_event.fold_register_details"
data-no-preview="true"
data-reload="/"/>
</div>
<div data-js="WebsiteEvent" data-selector="main:has(.o_wevent_event)" data-page-options="true" groups="website.group_website_designer" data-no-check="true" string="Event Page">
<we-checkbox string="Sub-menu (Specific)"
data-display-submenu="true"
data-no-preview="true"
data-reload="/"/>
</div>
</xpath>
</template>
</odoo>