[fix] removed UOM Replace Utility from message
This commit is contained in:
parent
49abb18928
commit
f942d97a18
@ -77,11 +77,6 @@ def get_data():
|
|||||||
"type": "doctype",
|
"type": "doctype",
|
||||||
"name": "Landed Cost Voucher",
|
"name": "Landed Cost Voucher",
|
||||||
"description": _("Update additional costs to calculate landed cost of items"),
|
"description": _("Update additional costs to calculate landed cost of items"),
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "doctype",
|
|
||||||
"name": "Stock UOM Replace Utility",
|
|
||||||
"description": _("Change UOM for an Item."),
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -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))
|
frappe.db.sql("""update tabBin set stock_uom=%s where item_code=%s""", (stock_uom, item))
|
||||||
|
|
||||||
if not matched:
|
if not matched:
|
||||||
frappe.throw(_("Default Unit of Measure for Item {0} cannot be changed directly because \
|
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))
|
||||||
you have already made some transaction(s) with another UOM. To change default UOM, \
|
|
||||||
use 'UOM Replace Utility' tool under Stock module.").format(item))
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user