Files
odoo_source/addons/website_sale_wishlist/views/snippets.xml
T
qsm-odooandCocographique 28f08d7ff8 [IMP] website_sale_wishlist: review wishlist templates
1) Allow to enable the wishlist button on the shop page and the product
   pages individually. Also remove the code which allowed to disabled
   the feature entirely but keeping the module installed: if users don't
   want it, just uninstall the app (the feature was in website_sale
   directly at some point).

2) Add a new option to be able to show the wishlist counter even if no
   item has been added in the wishlist yet.

3) Move the feature in external views to be able to be placed at a
   different location depending on the header template.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: de97be253a54648ebd392f7f4f66ef16cc72b8af
Co-authored-by: Cocographique <nmi@odoo.com>
2020-08-28 08:19:38 +00:00

18 lines
626 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="snippet_options" inherit_id="website.snippet_options" name="Wishlist Snippet Options">
<xpath expr="." position="inside">
<div data-selector="#wrapwrap > header"
data-no-check="true"
groups="website.group_website_designer">
<we-checkbox string="Show Empty Wishlist"
data-customize-website-views="website_sale_wishlist.header_hide_empty_wishlist_link|"
data-no-preview="true"
data-reload="/"/>
</div>
</xpath>
</template>
</odoo>