fix(ux): use toast instead of popup

This commit is contained in:
Ankush Menat
2021-10-05 14:27:09 +05:30
parent df1f8fddf6
commit 2cfafede44

View File

@@ -560,9 +560,9 @@ class SellingController(StockController):
.format(d.idx, warehouse, warehouse))
if not self.get("is_internal_customer") and any(d.get("target_warehouse") for d in items):
msg = _("Target Warehouse set for some items but the customer is not an internal customer.")
msg = _("Target Warehouse is set for some items but the customer is not an internal customer.")
msg += " " + _("This {} will be treated as material transfer.").format(_(self.doctype))
frappe.msgprint(msg, title="Internal Transfer")
frappe.msgprint(msg, title="Internal Transfer", alert=True)
def validate_items(self):