[wsgi] [minor] fixed webnotes.local.form_dict
diff --git a/accounts/page/accounts_browser/accounts_browser.py b/accounts/page/accounts_browser/accounts_browser.py
index 61f4bfc..7bc9549 100644
--- a/accounts/page/accounts_browser/accounts_browser.py
+++ b/accounts/page/accounts_browser/accounts_browser.py
@@ -15,7 +15,7 @@
@webnotes.whitelist()
def get_children():
- args = webnotes.form_dict
+ args = webnotes.local.form_dict
ctype, company = args['ctype'], args['comp']
# root
diff --git a/accounts/utils.py b/accounts/utils.py
index 5c6c16b..ac82312 100644
--- a/accounts/utils.py
+++ b/accounts/utils.py
@@ -108,7 +108,7 @@
@webnotes.whitelist()
def add_ac(args=None):
if not args:
- args = webnotes.form_dict
+ args = webnotes.local.form_dict
args.pop("cmd")
ac = webnotes.bean(args)
@@ -121,7 +121,7 @@
@webnotes.whitelist()
def add_cc(args=None):
if not args:
- args = webnotes.form_dict
+ args = webnotes.local.form_dict
args.pop("cmd")
cc = webnotes.bean(args)
diff --git a/hr/doctype/upload_attendance/upload_attendance.py b/hr/doctype/upload_attendance/upload_attendance.py
index 5e2b02e..56c8eed 100644
--- a/hr/doctype/upload_attendance/upload_attendance.py
+++ b/hr/doctype/upload_attendance/upload_attendance.py
@@ -22,7 +22,7 @@
if not webnotes.has_permission("Attendance", "create"):
raise webnotes.PermissionError
- args = webnotes.form_dict
+ args = webnotes.local.form_dict
webnotes.local.uploadattendance_doclist = webnotes.model.doctype.get("Attendance")
w = UnicodeWriter()