Skip to content

Commit

Permalink
Merge pull request #704 from OCA/17.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/e-commerce (17.0)
  • Loading branch information
bt-admin authored Jun 21, 2024
2 parents 05b9c1b + fdedf38 commit 3918311
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[website_sale_hide_price](website_sale_hide_price/) | 17.0.1.0.0 | | Hide product prices on the shop
[website_sale_hide_price](website_sale_hide_price/) | 17.0.1.1.0 | | Hide product prices on the shop

[//]: # (end addons)

Expand Down
2 changes: 1 addition & 1 deletion website_sale_hide_price/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Website Sale Hide Price
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5a8268f61d8211038abba63a286b96c11fcf16c8b36fb658b45ec2c5b3183bd8
!! source digest: sha256:ce2770caf5d84caa0946972d414501e704fbe1f0a1a08a5c6d6d92a435a823b6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion website_sale_hide_price/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website Sale Hide Price",
"version": "17.0.1.0.0",
"version": "17.0.1.1.0",
"category": "Website",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/e-commerce",
Expand Down
2 changes: 1 addition & 1 deletion website_sale_hide_price/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h1 class="title">Website Sale Hide Price</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5a8268f61d8211038abba63a286b96c11fcf16c8b36fb658b45ec2c5b3183bd8
!! source digest: sha256:ce2770caf5d84caa0946972d414501e704fbe1f0a1a08a5c6d6d92a435a823b6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/e-commerce/tree/17.0/website_sale_hide_price"><img alt="OCA/e-commerce" src="https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_hide_price"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to have hidden product prices on the website store.</p>
Expand Down
15 changes: 0 additions & 15 deletions website_sale_hide_price/views/website_sale_template.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="products" inherit_id="website_sale.products">
<!-- adding website and website.website_show_price to t-cache in order to update cache if parameter modified
this is needed if you connect with a different user that should not see the prices
see https://github.com/OCA/e-commerce/issues/818 -->
<xpath
expr="//div[hasclass('o_wsale_products_grid_table_wrapper')]"
position="attributes"
>
<attribute
name="t-cache"
add="website,website.website_show_price"
separator=","
/>
</xpath>
</template>
<template id="product_price" inherit_id="website_sale.product_price">
<xpath expr="//div[@itemprop='offers']" position="attributes">
<attribute name="t-if">
Expand Down

0 comments on commit 3918311

Please sign in to comment.