mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
update throw message in maintenance_schedule.py (#8896)
updating Throw message
This commit is contained in:
@@ -163,7 +163,7 @@ class MaintenanceSchedule(TransactionBase):
|
|||||||
`tabMaintenance Schedule Item` msi where msi.parent=ms.name and
|
`tabMaintenance Schedule Item` msi where msi.parent=ms.name and
|
||||||
msi.sales_order=%s and ms.docstatus=1""", d.sales_order)
|
msi.sales_order=%s and ms.docstatus=1""", d.sales_order)
|
||||||
if chk:
|
if chk:
|
||||||
throw(_("Maintenance Schedule {0} exists against {0}").format(chk[0][0], d.sales_order))
|
throw(_("Maintenance Schedule {0} exists against {1}").format(chk[0][0], d.sales_order))
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_maintenance_detail()
|
self.validate_maintenance_detail()
|
||||||
|
|||||||
Reference in New Issue
Block a user