From 641fe7738c59bcfe275eaed7020363a90b0896a3 Mon Sep 17 00:00:00 2001 From: Dany Robert Date: Thu, 17 Aug 2023 18:01:15 +0530 Subject: [PATCH] fix(ux): change batch selection message to alert (#36500) * fix(ux): change batch selection message to alert * chore: linters --- erpnext/stock/doctype/batch/batch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/batch/batch.py b/erpnext/stock/doctype/batch/batch.py index 1843c6e7975b..f377f94a8cf8 100644 --- a/erpnext/stock/doctype/batch/batch.py +++ b/erpnext/stock/doctype/batch/batch.py @@ -297,7 +297,9 @@ def get_batch_no(item_code, warehouse, qty=1, throw=False, serial_no=None): frappe.msgprint( _( "Please select a Batch for Item {0}. Unable to find a single batch that fulfills this requirement" - ).format(frappe.bold(item_code)) + ).format(frappe.bold(item_code)), + indicator="yellow", + alert=(not throw), ) if throw: raise UnableToSelectBatchError