Minor fix: commonified message.
This commit is contained in:
parent
e9f43251ab
commit
c33ae0c7df
@ -137,7 +137,7 @@ class PurchaseOrder(BuyingController):
|
|||||||
date_diff = frappe.db.sql("select TIMEDIFF('%s', '%s')" % ( mod_db[0][0],cstr(self.modified)))
|
date_diff = frappe.db.sql("select TIMEDIFF('%s', '%s')" % ( mod_db[0][0],cstr(self.modified)))
|
||||||
|
|
||||||
if date_diff and date_diff[0][0]:
|
if date_diff and date_diff[0][0]:
|
||||||
msgprint(_("{0} {1} has been modified. Please refresh").format(self.doctype, self.name),
|
msgprint(_("{0} {1} has been modified. Please refresh.").format(self.doctype, self.name),
|
||||||
raise_exception=True)
|
raise_exception=True)
|
||||||
|
|
||||||
def update_status(self, status):
|
def update_status(self, status):
|
||||||
|
|||||||
@ -209,7 +209,7 @@ class SalesOrder(SellingController):
|
|||||||
date_diff = frappe.db.sql("select TIMEDIFF('%s', '%s')" %
|
date_diff = frappe.db.sql("select TIMEDIFF('%s', '%s')" %
|
||||||
( mod_db, cstr(self.modified)))
|
( mod_db, cstr(self.modified)))
|
||||||
if date_diff and date_diff[0][0]:
|
if date_diff and date_diff[0][0]:
|
||||||
frappe.throw(_("{0} {1} has been modified. Please Refresh").format(self.doctype, self.name))
|
frappe.throw(_("{0} {1} has been modified. Please refresh.").format(self.doctype, self.name))
|
||||||
|
|
||||||
def stop_sales_order(self):
|
def stop_sales_order(self):
|
||||||
self.check_modified_date()
|
self.check_modified_date()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user