Skip to content

Commit

Permalink
fix(ux): change batch selection message to alert (#36500)
Browse files Browse the repository at this point in the history
* fix(ux): change batch selection message to alert

* chore: linters
  • Loading branch information
rtdany10 authored Aug 17, 2023
1 parent b773465 commit 641fe77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/stock/doctype/batch/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 641fe77

Please sign in to comment.