From f942d97a18f474559d7c772bb6bfbdea849cd217 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 26 Nov 2015 16:07:02 +0530 Subject: [PATCH] [fix] removed UOM Replace Utility from message --- erpnext/config/stock.py | 5 ----- erpnext/stock/doctype/item/item.py | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/erpnext/config/stock.py b/erpnext/config/stock.py index a4a72020081..9b47e580d7d 100644 --- a/erpnext/config/stock.py +++ b/erpnext/config/stock.py @@ -77,11 +77,6 @@ def get_data(): "type": "doctype", "name": "Landed Cost Voucher", "description": _("Update additional costs to calculate landed cost of items"), - }, - { - "type": "doctype", - "name": "Stock UOM Replace Utility", - "description": _("Change UOM for an Item."), } ] }, diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 1cbb33d95e2..b11603eaa76 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -662,7 +662,5 @@ def check_stock_uom_with_bin(item, stock_uom): frappe.db.sql("""update tabBin set stock_uom=%s where item_code=%s""", (stock_uom, item)) if not matched: - frappe.throw(_("Default Unit of Measure for Item {0} cannot be changed directly because \ - you have already made some transaction(s) with another UOM. To change default UOM, \ - use 'UOM Replace Utility' tool under Stock module.").format(item)) + frappe.throw(_("Default Unit of Measure for Item {0} cannot be changed directly because you have already made some transaction(s) with another UOM. You will need to create a new Item to use a different Default UOM.").format(item))