[IMP] website, *: adapt customize show options in website pages
*: website_crm, website_crm_partner_assign, website_customer, website_forum, website_hr_recruitment, website_membership, website_slides, website_slides_forum This commit adapts "customize show" options from several website modules by creating new options available in edit mode. See merge commit for more information. task-2710582
This commit is contained in:
@@ -1453,5 +1453,12 @@
|
||||
<we-button data-configure-api-key="" data-no-preview="true">Custom Key</we-button>
|
||||
</we-row>
|
||||
</div>
|
||||
<!-- Info page ('/website/info') -->
|
||||
<div data-selector="main:has(.o_website_info)" data-page-options="true" data-no-check="true" string="Info Page">
|
||||
<we-checkbox string="Odoo Information"
|
||||
data-customize-website-views="website.show_website_info"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
@@ -2083,11 +2083,11 @@
|
||||
<!-- Error and special pages -->
|
||||
<template id="website_info" name="Odoo Information">
|
||||
<t t-call="website.layout">
|
||||
<div id="wrap"/>
|
||||
<div id="wrap" class="o_website_info"/>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="show_website_info" inherit_id="website.website_info" customize_show="True" name="Show Odoo Information">
|
||||
<template id="show_website_info" inherit_id="website.website_info" name="Show Odoo Information">
|
||||
<xpath expr="//div[@id='wrap']" position="inside">
|
||||
<div class="oe_structure">
|
||||
<section class="container">
|
||||
@@ -2101,7 +2101,7 @@
|
||||
<div class="alert alert-warning alert-dismissable mt16" groups="website.group_website_publisher" role="status">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">×</button>
|
||||
<p>
|
||||
Note: To hide this page, uncheck it from the top Customize menu.
|
||||
Note: To hide this page, uncheck it from the Customize tab in edit mode.
|
||||
</p>
|
||||
</div>
|
||||
<h2>Installed Applications</h2>
|
||||
|
||||
@@ -21,6 +21,7 @@ This module includes contact phone and mobile numbers validation.""",
|
||||
'views/crm_lead_views.xml',
|
||||
'views/website_visitor_views.xml',
|
||||
'views/website_templates_contactus.xml',
|
||||
'views/snippets.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': True,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Crm Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(span[data-for='contactus_form'])" data-page-options="true" data-no-check="true" string="Contact us Page">
|
||||
<we-checkbox string="Opportunity"
|
||||
data-customize-website-views="website_crm.contactus_form"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="contactus_form" name="Contact Form (Opportunity)" inherit_id="website.contactus" customize_show="True">
|
||||
<template id="contactus_form" name="Contact Form (Opportunity)" inherit_id="website.contactus">
|
||||
<xpath expr="//span[@data-for='contactus_form']" position="before">
|
||||
<t t-set="contactus_form_values" t-value="dict(contactus_form_values, **{
|
||||
'contact_name': request.params.get('contact_name', ''),
|
||||
|
||||
@@ -39,6 +39,7 @@ The automatic assignment is figured from the weight of partner levels and the ge
|
||||
'views/website_crm_partner_assign_templates.xml',
|
||||
'views/partner_assign_menus.xml',
|
||||
'report/crm_partner_report_view.xml',
|
||||
'views/snippets.xml',
|
||||
],
|
||||
'demo': [
|
||||
'data/res_partner_demo.xml',
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Crm Partner Assign Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(#oe_structure_website_crm_partner_assign_layout_1)" data-page-options="true" data-no-check="true" string="Partners Page">
|
||||
<we-checkbox string="Show Leads / Opps"
|
||||
data-customize-website-views="website_crm_partner_assign.portal_my_home_lead"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="World Map"
|
||||
data-customize-website-views="website_crm_partner_assign.ref_country"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="ref_country" inherit_id="website_crm_partner_assign.index" customize_show="True" name="Left World Map">
|
||||
<template id="ref_country" inherit_id="website_crm_partner_assign.index" name="Left World Map">
|
||||
<xpath expr="//ul[@id='reseller_countries']" position="after">
|
||||
<t t-if="google_maps_api_key">
|
||||
<!-- modal for large map -->
|
||||
@@ -199,7 +199,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="portal_my_home_lead" name="Show Leads / Opps" customize_show="True" inherit_id="portal.portal_my_home" priority="15">
|
||||
<template id="portal_my_home_lead" name="Show Leads / Opps" inherit_id="portal.portal_my_home" priority="15">
|
||||
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
|
||||
<t t-call="portal.portal_docs_entry">
|
||||
<t t-set="title">Leads</t>
|
||||
|
||||
@@ -22,6 +22,7 @@ Publish your customers as business references on your website to attract new pot
|
||||
'views/res_partner_views.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'security/ir_rule.xml',
|
||||
'views/snippets.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'license': 'LGPL-3',
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Customer Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(#ref_left_column)" data-page-options="true" data-no-check="true" string="References Page">
|
||||
<we-checkbox string="Countries Filter"
|
||||
data-customize-website-views="website_customer.opt_country_list"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="Industry Filter"
|
||||
data-customize-website-views="website_customer.opt_industry_list"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="Tags Filter"
|
||||
data-customize-website-views="website_customer.opt_tag_list"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="Show Map"
|
||||
data-customize-website-views="website_customer.opt_country"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -62,7 +62,7 @@
|
||||
</template>
|
||||
|
||||
<!-- Option: left column: World Map -->
|
||||
<template id="opt_country" inherit_id="website_customer.index" customize_show="True" name="Show Map">
|
||||
<template id="opt_country" inherit_id="website_customer.index" name="Show Map">
|
||||
<xpath expr="//div[@id='ref_left_column']" position="inside">
|
||||
<t t-if="google_maps_api_key">
|
||||
<!-- modal for large map -->
|
||||
@@ -88,7 +88,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="opt_industry_list" inherit_id="website_customer.index" customize_show="True" name="Filter on Industry" priority="20">
|
||||
<template id="opt_industry_list" inherit_id="website_customer.index" name="Filter on Industry" priority="20">
|
||||
<xpath expr="//div[@id='ref_left_column']" position="inside">
|
||||
<h3>References by Industries</h3>
|
||||
<ul class="nav nav-pills flex-column mt16 mb32">
|
||||
@@ -107,7 +107,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="opt_country_list" inherit_id="website_customer.index" customize_show="True" name="Filter on Countries" priority="30">
|
||||
<template id="opt_country_list" inherit_id="website_customer.index" name="Filter on Countries" priority="30">
|
||||
<xpath expr="//div[@id='ref_left_column']" position="inside">
|
||||
<h3>References by Country</h3>
|
||||
<ul class="nav nav-pills flex-column mt16 mb32">
|
||||
@@ -127,7 +127,7 @@
|
||||
</template>
|
||||
|
||||
|
||||
<template id="opt_tag_list" inherit_id="website_customer.index" customize_show="True" name="Filter on Tags" priority="40">
|
||||
<template id="opt_tag_list" inherit_id="website_customer.index" name="Filter on Tags" priority="40">
|
||||
<xpath expr="//div[@id='ref_left_column']" position="inside">
|
||||
|
||||
<h3 t-if="len(tags)">References by Tag</h3>
|
||||
|
||||
@@ -18,4 +18,23 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Forum Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(#o_wforum_forums_index_list)" data-page-options="true" data-no-check="true" string="Forum Page">
|
||||
<we-select string="Layout" data-no-preview="true" data-reload="/">
|
||||
<we-button data-customize-website-views="">Grid</we-button>
|
||||
<we-button data-customize-website-views="website_forum.opt_list_view">List</we-button>
|
||||
</we-select>
|
||||
<we-checkbox string="⌙ Post Count"
|
||||
data-customize-website-views="website_forum.opt_post_count"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="⌙ Last Post"
|
||||
data-customize-website-views="website_forum.opt_last_post"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -495,7 +495,7 @@
|
||||
|
||||
<!-- (Options) Forum : List View
|
||||
Display forums as a list -->
|
||||
<template name="List View" id="website_forum.opt_list_view" inherit_id="website_forum.forum_all" active="False" customize_show="True">
|
||||
<template name="List View" id="website_forum.opt_list_view" inherit_id="website_forum.forum_all" active="False">
|
||||
<xpath expr="//t[@t-set='col_class']" position="attributes">
|
||||
<attribute name="t-valuef">mb-3 col-sm-12</attribute>
|
||||
</xpath>
|
||||
@@ -515,11 +515,11 @@
|
||||
|
||||
<!-- (Options) Forum : Show Post Count
|
||||
Show the number of post a forum has -->
|
||||
<template name="Show Post Count" id="website_forum.opt_post_count" inherit_id="website_forum.forum_all" active="False" customize_show="True"/>
|
||||
<template name="Show Post Count" id="website_forum.opt_post_count" inherit_id="website_forum.forum_all" active="False"/>
|
||||
|
||||
<!-- (Options) Forum : Show Last Post
|
||||
Show the title of the latest post in each forum -->
|
||||
<template name="Show Last Post" id="website_forum.opt_last_post" inherit_id="website_forum.forum_all" active="False" customize_show="True"/>
|
||||
<template name="Show Last Post" id="website_forum.opt_last_post" inherit_id="website_forum.forum_all" active="False"/>
|
||||
|
||||
|
||||
<!-- Default content for the "All Forums Layout" header above -->
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
'views/website_hr_recruitment_templates.xml',
|
||||
'views/hr_recruitment_views.xml',
|
||||
'views/hr_job_views.xml',
|
||||
'views/snippets.xml',
|
||||
],
|
||||
'demo': [
|
||||
'data/hr_job_demo.xml',
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Hr Recruitment Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(.o_website_hr_recruitment_jobs_list)" data-page-options="true" data-no-check="true" string="Jobs Page">
|
||||
<we-checkbox string="Countries Filter"
|
||||
data-customize-website-views="website_hr_recruitment.job_filter_by_countries"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="Departments Filter"
|
||||
data-customize-website-views="website_hr_recruitment.job_filter_by_departments"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="Offices Filter"
|
||||
data-customize-website-views="website_hr_recruitment.job_filter_by_offices"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="Sidebar"
|
||||
data-customize-website-views="website_hr_recruitment.job_right_side_bar"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -512,7 +512,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<template id="job_filter_by_countries" inherit_id="website_hr_recruitment.index" active="False" customize_show="True" name="Filter by Countries">
|
||||
<template id="job_filter_by_countries" inherit_id="website_hr_recruitment.index" active="False" name="Filter by Countries">
|
||||
<xpath expr="//div[@id='jobs_grid_left']" position="inside">
|
||||
<ul class="nav nav-pills flex-column mb32">
|
||||
<li class="nav-item"><a t-attf-href="/jobs#{ '/department/%s' % slug(department_id) if department_id else '' }#{ '/office/%s' % office_id if office_id else '' }?all_countries=1" t-attf-class="nav-link#{'' if country_id else ' active'}">All Countries</a></li>
|
||||
@@ -529,7 +529,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="job_filter_by_departments" inherit_id="website_hr_recruitment.index" active="False" customize_show="True" name="Filter by Departments">
|
||||
<template id="job_filter_by_departments" inherit_id="website_hr_recruitment.index" active="False" name="Filter by Departments">
|
||||
<xpath expr="//div[@id='jobs_grid_left']" position="inside">
|
||||
<ul class="nav nav-pills flex-column mb32">
|
||||
<li class="nav-item"><a t-attf-href="/jobs#{ '/country/%s' % slug(country_id) if country_id else '' }#{ '/office/%s' % office_id if office_id else ''}" t-attf-class="nav-link#{'' if department_id else ' active'}">All Departments</a></li>
|
||||
@@ -545,7 +545,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="job_filter_by_offices" inherit_id="website_hr_recruitment.index" active="False" customize_show="True" name="Filter by Offices">
|
||||
<template id="job_filter_by_offices" inherit_id="website_hr_recruitment.index" active="False" name="Filter by Offices">
|
||||
<xpath expr="//div[@id='jobs_grid_left']" position="inside">
|
||||
<ul class="nav nav-pills flex-column mb32">
|
||||
<li class="nav-item"><a t-attf-href="/jobs#{ '/country/%s' % slug(country_id) if country_id else '' }#{ '/department/%s' % slug(department_id) if department_id else '' }" t-attf-class="nav-link#{'' if office_id else ' active'}">All Offices</a></li>
|
||||
@@ -566,7 +566,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="job_right_side_bar" inherit_id="website_hr_recruitment.index" active="True" customize_show="True" name="Right Side Bar">
|
||||
<template id="job_right_side_bar" inherit_id="website_hr_recruitment.index" active="True" name="Right Side Bar">
|
||||
<xpath expr="//div[@id='jobs_grid']" position="after">
|
||||
<div class="col-lg-3 oe_structure oe_empty" id="jobs_grid_left">
|
||||
<section class="">
|
||||
|
||||
@@ -15,6 +15,7 @@ Publish your members/association directory publicly.
|
||||
'views/website_membership_templates.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'security/website_membership.xml',
|
||||
'views/snippets.xml',
|
||||
],
|
||||
'demo': ['data/membership_demo.xml'],
|
||||
'installable': True,
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Membership Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(#oe_structure_website_membership_index_1)" data-page-options="true" data-no-check="true" string="Members Page">
|
||||
<we-checkbox string="Location"
|
||||
data-customize-website-views="website_membership.opt_index_country"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
<we-checkbox string="World Map"
|
||||
data-customize-website-views="website_membership.opt_index_google_map"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -78,7 +78,7 @@
|
||||
</template>
|
||||
|
||||
<template id="opt_index_country" name="Location"
|
||||
customize_show="True" inherit_id="website_membership.index">
|
||||
inherit_id="website_membership.index">
|
||||
<xpath expr="//div[@id='left_column']/ul[1]" position="after">
|
||||
<ul class="nav nav-pills flex-column mt16">
|
||||
<li class="nav-header nav-item"><h3>Location</h3></li>
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
<!-- Option: index: Left Google Map -->
|
||||
<template id="opt_index_google_map" name="Left World Map"
|
||||
customize_show="True" inherit_id="website_membership.index">
|
||||
inherit_id="website_membership.index">
|
||||
<xpath expr="//div[@id='left_column']/ul[last()]" position="after">
|
||||
<t t-if="google_maps_api_key">
|
||||
<!-- modal for large map -->
|
||||
|
||||
@@ -18,4 +18,25 @@
|
||||
</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" 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" 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>
|
||||
|
||||
@@ -379,7 +379,7 @@
|
||||
</template>
|
||||
|
||||
<template id="course_card_information_arrow" inherit_id="website_slides.course_card_information"
|
||||
active="True" customize_show="True" name='New Content Ribbon'>
|
||||
active="True" name='New Content Ribbon'>
|
||||
<xpath expr="//t[@id='course_card_information_content']" position="inside">
|
||||
<span class="o_wslides_arrow">New Content</span>
|
||||
</xpath>
|
||||
@@ -390,7 +390,7 @@
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="toggle_latest_achievements" inherit_id="website_slides.slides_home_achievements_small" active="True" customize_show="True" name='Display Achievements'>
|
||||
<template id="toggle_latest_achievements" inherit_id="website_slides.slides_home_achievements_small" active="True" name='Display Achievements'>
|
||||
<xpath expr="//t[hasclass('o_wslides_home_aside')]" position="inside">
|
||||
<div t-if="achievements">
|
||||
<div class="row o_wslides_home_aside_title">
|
||||
@@ -426,7 +426,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="toggle_leaderboard" inherit_id="website_slides.slides_home_users_small" active="True" customize_show="True" name='Display Leaderboard'>
|
||||
<template id="toggle_leaderboard" inherit_id="website_slides.slides_home_users_small" active="True" name='Display Leaderboard'>
|
||||
<xpath expr="//div[hasclass('o_wslides_home_aside')]" position="inside">
|
||||
<div class="row o_wslides_home_aside_title">
|
||||
<div class="col">
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
'views/website_slides_menu_views.xml',
|
||||
'views/website_slides_forum_templates.xml',
|
||||
'views/website_slides_templates.xml',
|
||||
'views/snippets.xml',
|
||||
],
|
||||
'demo': [
|
||||
'data/slide_channel_demo.xml',
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Slides Forum Snippet Options">
|
||||
<xpath expr="." position="inside">
|
||||
<div data-selector="main:has(#o_wforum_forums_index_list)" data-page-options="true" data-no-check="true" string="Forum Page">
|
||||
<we-checkbox string="⌙ Separate Courses"
|
||||
data-customize-website-views="website_slides_forum.website_slides_forum_index"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -27,7 +27,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template name="Split regular forums/courses" id="website_slides_forum_index" inherit_id="website_forum.forum_all" active="True" customize_show="True">
|
||||
<template name="Split regular forums/courses" id="website_slides_forum_index" inherit_id="website_forum.forum_all" active="True">
|
||||
<xpath expr="//div[@id='o_wforum_forums_index_list']/*[@t-if='forums']" position="replace">
|
||||
<t t-if="forums">
|
||||
<t t-set="courses_discussions" t-value="forums.filtered(lambda f: f.slide_channel_id)"/>
|
||||
|
||||
Reference in New Issue
Block a user