update throw message in maintenance_schedule.py (#8896)

updating Throw message
This commit is contained in:
Omar Jaber 2017-05-18 09:23:26 +03:00 committed by Nabin Hait
parent 08ea710c8f
commit 52e1ba7714

View File

@ -163,7 +163,7 @@ class MaintenanceSchedule(TransactionBase):
`tabMaintenance Schedule Item` msi where msi.parent=ms.name and
msi.sales_order=%s and ms.docstatus=1""", d.sales_order)
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):
self.validate_maintenance_detail()