3 changed files with 39 additions and 2 deletions
			
			
		@ -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…
					
					
				
		Reference in new issue