mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
Merge pull request #5103 from bohlian/develop
Set Resolution Date to include Time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user