*: 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>
43 lines
2.8 KiB
XML
43 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Snippets and options -->
|
|
<template id="slide_searchbar_input_snippet_options" inherit_id="website.searchbar_input_snippet_options" name="slide search bar snippet options">
|
|
<xpath expr="//div[@data-js='SearchBar']/we-select[@data-name='scope_opt']" position="inside">
|
|
<we-button data-set-search-type="slides" data-select-data-attribute="slides" data-name="search_slides_opt" data-form-action="/slides/all">Courses</we-button>
|
|
</xpath>
|
|
<xpath expr="//div[@data-js='SearchBar']/we-select[@data-name='order_opt']" position="inside">
|
|
<we-button data-set-order-by="slide_last_update asc" data-select-data-attribute="slide_last_update asc" data-dependencies="search_slides_opt" data-name="order_slide_last_update_asc_opt">Date (old to new)</we-button>
|
|
<we-button data-set-order-by="slide_last_update desc" data-select-data-attribute="slide_last_update desc" data-dependencies="search_slides_opt" data-name="order_slide_last_update_desc_opt">Date (new to old)</we-button>
|
|
</xpath>
|
|
<xpath expr="//div[@data-js='SearchBar']/div[@data-dependencies='limit_opt']" position="inside">
|
|
<we-checkbox string="Description" data-dependencies="search_slides_opt" data-select-data-attribute="true" data-attribute-name="displayDescription"
|
|
data-apply-to=".search-query"/>
|
|
<we-checkbox string="Publication Date" data-dependencies="search_slides_opt" data-select-data-attribute="true" data-attribute-name="displayDetail"
|
|
data-apply-to=".search-query"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="snippet_options" inherit_id="website.snippet_options" name="Slides Snippet Options">
|
|
<xpath expr="." position="inside">
|
|
<div data-selector="main:has(.o_wslides_home_main)" data-page-options="true" groups="website.group_website_designer" data-no-check="true" string="Courses Page">
|
|
<we-checkbox string="New Content Ribbon"
|
|
data-customize-website-views="website_slides.course_card_information_arrow"
|
|
data-no-preview="true"
|
|
data-reload="/"/>
|
|
</div>
|
|
<div data-selector="main:has(.o_wslides_home_aside_loggedin)" data-page-options="true" groups="website.group_website_designer" data-no-check="true" string="Courses Page">
|
|
<we-checkbox string="Achievements"
|
|
data-customize-website-views="website_slides.toggle_latest_achievements"
|
|
data-no-preview="true"
|
|
data-reload="/"/>
|
|
<we-checkbox string="Leaderboard"
|
|
data-customize-website-views="website_slides.toggle_leaderboard"
|
|
data-no-preview="true"
|
|
data-reload="/"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|