Browse Source

[minor] __onload is frappe._dict

version-14
Rushabh Mehta 9 years ago
parent
commit
2babe422d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/model/document.py

+ 1
- 1
frappe/model/document.py View File

@@ -873,7 +873,7 @@ class Document(BaseDocument):

def set_onload(self, key, value):
if not self.get("__onload"):
self.set("__onload", {})
self.set("__onload", frappe._dict())
self.get("__onload")[key] = value

def update_timeline_doc(self):


Loading…
Cancel
Save