This commit is contained in:
Anand Doshi
2014-04-02 15:03:35 +05:30
parent dd32d6eb1f
commit 5b552b51f1
15 changed files with 53 additions and 73 deletions

View File

@@ -13,8 +13,8 @@ class TransactionBase(StatusUpdater):
def load_notification_message(self):
dt = self.doctype.lower().replace(" ", "_")
if int(frappe.db.get_value("Notification Control", None, dt) or 0):
self.set("__notification_message", \)
frappe.db.get_value("Notification Control", None, dt + "_message")
self.set("__notification_message",
frappe.db.get_value("Notification Control", None, dt + "_message"))
def validate_posting_time(self):
if not self.posting_time: