[wsgi] [minor] fixed webnotes.local.form_dict
This commit is contained in:
parent
24ca7e4e2e
commit
8c2e4e1e1f
@ -15,7 +15,7 @@ def get_companies():
|
||||
|
||||
@webnotes.whitelist()
|
||||
def get_children():
|
||||
args = webnotes.form_dict
|
||||
args = webnotes.local.form_dict
|
||||
ctype, company = args['ctype'], args['comp']
|
||||
|
||||
# root
|
||||
|
@ -108,7 +108,7 @@ def get_balance_on(account=None, date=None):
|
||||
@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 @@ def add_ac(args=None):
|
||||
@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)
|
||||
|
@ -22,7 +22,7 @@ def get_template():
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user