Browse Source

May 16: [FIX] Bug Fixed 'website_hide_button'

pull/346/merge
Cybrosys Technologies 2 months ago
parent
commit
9f53c8de3d
  1. 4
      website_hide_button/__manifest__.py
  2. 7
      website_hide_button/doc/RELEASE_NOTES.md
  3. 30
      website_hide_button/views/website_sale_comparison.xml

4
website_hide_button/__manifest__.py

@ -36,8 +36,10 @@
'data': [
'views/product_templates.xml',
'views/shop_templates.xml',
'views/res_config_settings_views.xml'
'views/res_config_settings_views.xml',
'views/website_sale_comparison.xml',
],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,

7
website_hide_button/doc/RELEASE_NOTES.md

@ -8,4 +8,9 @@
#### 20.03.2025
#### Version 18.0.1.0.1
#### UPDT
- Commit for bug fix
- Commit for bug fix
#### 15.05.2025
#### Version 18.0.1.0.2
#### UPDT
- Commit for bug fix

30
website_hide_button/views/website_sale_comparison.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="product_compare_inherit"
inherit_id="website_sale_comparison.product_compare">
<xpath expr='//td[@t-foreach="products"]//span[@class="o_comparison_price"][2]' position="attributes">
<attribute name="t-if">
not request.env.user._is_public() or
(request.env.user._is_public() and not
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price'))
</attribute>
</xpath>
<xpath expr='//form[hasclass("o_add_cart_form_compare")]' position="attributes">
<attribute name="t-if">
not request.env.user._is_public() or
(request.env.user._is_public() and not
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price'))
</attribute>
</xpath>
</template>
<template id="product_product_inherit"
inherit_id="website_sale_comparison.product_product">
<xpath expr='//span[1]' position="attributes">
<attribute name="t-if">
not request.env.user._is_public() or
(request.env.user._is_public() and not
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price'))
</attribute>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save