Merge pull request #5103 from bohlian/develop

Set Resolution Date to include Time
This commit is contained in:
Rushabh Mehta 2016-04-01 11:41:57 +05:30
commit 8aa24232cf

View File

@ -5,7 +5,7 @@
from __future__ import unicode_literals
import frappe
from frappe import session, _
from frappe.utils import today
from frappe.utils import today, now_datetime
@ -21,7 +21,7 @@ class WarrantyClaim(TransactionBase):
if self.status=="Closed" and \
frappe.db.get_value("Warranty Claim", self.name, "status")!="Closed":
self.resolution_date = today()
self.resolution_date = now_datetime()
def on_cancel(self):
lst = frappe.db.sql("""select t1.name