diff --git a/layouts/v7/modules/Inventory/resources/Edit.js b/layouts/v7/modules/Inventory/resources/Edit.js
index 17b906ff8301d9dd50c21d7895151e140b73b4f3..7b1cc0f6c9e2385363bea7c6ac5c9257f6b9b541 100644
--- a/layouts/v7/modules/Inventory/resources/Edit.js
+++ b/layouts/v7/modules/Inventory/resources/Edit.js
@@ -1819,7 +1819,8 @@ Vtiger_Edit_Js("Inventory_Edit_Js", {
                 'animation' : true,
                 'title' : popOverTitle,
                 'trigger' : 'manual',
-                'template' : template,
+                'template' : template[0].outerHTML,
+				'sanitize' : false, /* to allow button / anchor */
                 'container' : self.lineItemsHolder
                 
             });
@@ -2008,7 +2009,8 @@ Vtiger_Edit_Js("Inventory_Edit_Js", {
                 'animation' : true,
                 'title' : popOverTitle,
                 'trigger' : 'manual',
-                'template' : template,
+                'template' : template[0].outerHTML,
+				'sanitize' : false, /* to allow button / anchor */
                 'container' : self.lineItemsHolder
                 
             });
@@ -2035,8 +2037,8 @@ Vtiger_Edit_Js("Inventory_Edit_Js", {
 			'animation' : true,
 			'title' : 'Discount',
 			'trigger' : 'manual',
-			'template' : popOverTemplate
-                
+			'template' : popOverTemplate[0].outerHTML,
+            'sanitize' : false, /* to allow button / anchor */
 		});
 		this.finalDiscountEle.on('shown.bs.popover', function(){
 			if(jQuery(this.finalDiscountEle).next('.popover').find('.popover-content').height() > 300) {
@@ -2112,8 +2114,8 @@ Vtiger_Edit_Js("Inventory_Edit_Js", {
                 'animation' : true,
                 'title' : chargesTrigger.text(),
                 'trigger' : 'manual',
-                'template' : popOverTemplate
-                
+                'template' : popOverTemplate[0].outerHTML,
+                'sanitize' : false, /* to allow button / anchor */
         });
 
 		chargesTrigger.on('shown.bs.popover', function(){
@@ -2176,8 +2178,8 @@ Vtiger_Edit_Js("Inventory_Edit_Js", {
                 'animation' : true,
                 'title' : finalTaxUI.find('.popover_title').val(),
                 'trigger' : 'manual',
-                'template' : popOverTemplate
-                
+                'template' : popOverTemplate[0].outerHTML,
+                'sanitize' : false, /* to allow button / anchor */
         });
 
 		finalTaxTriggerer.on('shown.bs.popover', function(){
@@ -2239,8 +2241,8 @@ Vtiger_Edit_Js("Inventory_Edit_Js", {
                 'animation' : true,
                 'title' : 'Discount',
                 'trigger' : 'manual',
-                'template' : popOverTemplate
-                
+                'template' : popOverTemplate[0].outerHTML,
+                'sanitize' : false, /* to allow button / anchor */
         });
 
 		chargeTaxTriggerer.on('shown.bs.popover', function(){
diff --git a/layouts/v7/modules/Vtiger/resources/ListSidebar.js b/layouts/v7/modules/Vtiger/resources/ListSidebar.js
index 735d43e282d675162366efc980a6947ceecbc827..1f0d44bb2fb65b284f42743f71cd9510ccc617ea 100644
--- a/layouts/v7/modules/Vtiger/resources/ListSidebar.js
+++ b/layouts/v7/modules/Vtiger/resources/ListSidebar.js
@@ -200,7 +200,8 @@ Vtiger.Class('Vtiger_ListSidebar_Js',{},{
                 placement: 'left',
                 template: '<div class="popover" style="top: 0; position:absolute; z-index:0; margin-top:5px"><div class="popover-content"></div></div>',
                 content: contentEle.html(),
-                container: jQuery('#module-filters')
+                container: jQuery('#module-filters'),
+                sanitize : false, /* to allow button / anchor */
             };
             
             jQuery(ele).popover(options);
diff --git a/layouts/v7/modules/Vtiger/resources/Tag.js b/layouts/v7/modules/Vtiger/resources/Tag.js
index ba37c68609b4b1b008cb8a605818d51215771e7d..310f453f1277be860921d918e9e382ffdf7c07cf 100644
--- a/layouts/v7/modules/Vtiger/resources/Tag.js
+++ b/layouts/v7/modules/Vtiger/resources/Tag.js
@@ -274,7 +274,8 @@ Vtiger.Class("Vtiger_Tag_Js",{},{
                 'animation' : true,
                 'trigger' : 'manual',
                 'template' : self.editTagTemplate,
-                'container' : container
+                'container' : container,
+                'sanitize' : false, /* to allow button / anchor */
                 
             });
             element.popover('show');