fix(ux): change batch selection message to alert (backport #36500) (#36697)

fix(ux): change batch selection message to alert (#36500)

* fix(ux): change batch selection message to alert

* chore: linters

(cherry picked from commit 641fe7738c)

Co-authored-by: Dany Robert <danyrt@wahni.com>
This commit is contained in:
mergify[bot]
2023-08-17 18:03:58 +05:30
committed by GitHub
parent 9668615f7e
commit 0a4947a8f6

View File

@@ -297,7 +297,9 @@ def get_batch_no(item_code, warehouse, qty=1, throw=False, serial_no=None):
frappe.msgprint( frappe.msgprint(
_( _(
"Please select a Batch for Item {0}. Unable to find a single batch that fulfills this requirement" "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: if throw:
raise UnableToSelectBatchError raise UnableToSelectBatchError