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

(cherry picked from commit 641fe77)
  • Loading branch information
rtdany10 authored and mergify[bot] committed Aug 17, 2023
1 parent 9668615 commit d72200b
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 d72200b

Please sign in to comment.