fix(Asset Repair): Add title to error messages

This commit is contained in:
GangaManoj 2021-06-16 07:50:03 +05:30
parent fd272569aa
commit 654074ad7a

View File

@ -56,9 +56,9 @@ class AssetRepair(Document):
def check_for_stock_items_and_warehouse(self): def check_for_stock_items_and_warehouse(self):
if not self.stock_items: if not self.stock_items:
frappe.throw(_("Please enter Stock Items consumed during Asset Repair.")) frappe.throw(_("Please enter Stock Items consumed during the Repair."), title=_("Missing Items"))
if not self.warehouse: if not self.warehouse:
frappe.throw(_("Please enter Warehouse from which Stock Items consumed during Asset Repair were taken.")) frappe.throw(_("Please enter Warehouse from which Stock Items consumed during the Repair were taken."), title=_("Missing Warehouse"))
def check_for_cost_center(self): def check_for_cost_center(self):
if not self.cost_center: if not self.cost_center: