diff --git a/modules/Migration/schema/811_to_812.php b/modules/Migration/schema/811_to_812.php
index 9fcc3412d7c54fcbd54e3f5c81d08297b6d5456d..52e8bbfa3c698e606e1a7a8d49024c0c1a280338 100644
--- a/modules/Migration/schema/811_to_812.php
+++ b/modules/Migration/schema/811_to_812.php
@@ -25,4 +25,7 @@ if (defined('VTIGER_UPGRADE')) {
 	// Resize column width to text (instead of varchar)
 	$db->pquery("ALTER TABLE vtiger_shorturls MODIFY COLUMN handler_data text");
 
+	// Disabling the mass edit for the inventory line item fields.
+	$db->pquery("UPDATE vtiger_field set masseditable = 0 where columnname in ('discount_percent','discount_amount') 
+	and tablename in ('vtiger_quotes','vtiger_purchaseorder','vtiger_salesorder','vtiger_invoice')", array());
 }