Update time_log.py
This commit is contained in:
parent
d0a44ca85c
commit
185af03fb2
@ -24,7 +24,7 @@ class TimeLog(Document):
|
||||
from frappe.utils import time_diff_in_hours
|
||||
self.hours = time_diff_in_hours(self.to_time, self.from_time)
|
||||
if self.hours < 0:
|
||||
frappe.throw(_("\'From Time\' cannot be later than \'To Time\'"))
|
||||
frappe.throw(_("'From Time' cannot be later than 'To Time'"))
|
||||
|
||||
def set_status(self):
|
||||
self.status = {
|
||||
|
Loading…
Reference in New Issue
Block a user