mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
[wsgi] [minor] fixed webnotes.local.form_dict
This commit is contained in:
@@ -15,7 +15,7 @@ def get_companies():
|
|||||||
|
|
||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def get_children():
|
def get_children():
|
||||||
args = webnotes.form_dict
|
args = webnotes.local.form_dict
|
||||||
ctype, company = args['ctype'], args['comp']
|
ctype, company = args['ctype'], args['comp']
|
||||||
|
|
||||||
# root
|
# root
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ def get_balance_on(account=None, date=None):
|
|||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def add_ac(args=None):
|
def add_ac(args=None):
|
||||||
if not args:
|
if not args:
|
||||||
args = webnotes.form_dict
|
args = webnotes.local.form_dict
|
||||||
args.pop("cmd")
|
args.pop("cmd")
|
||||||
|
|
||||||
ac = webnotes.bean(args)
|
ac = webnotes.bean(args)
|
||||||
@@ -121,7 +121,7 @@ def add_ac(args=None):
|
|||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def add_cc(args=None):
|
def add_cc(args=None):
|
||||||
if not args:
|
if not args:
|
||||||
args = webnotes.form_dict
|
args = webnotes.local.form_dict
|
||||||
args.pop("cmd")
|
args.pop("cmd")
|
||||||
|
|
||||||
cc = webnotes.bean(args)
|
cc = webnotes.bean(args)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ def get_template():
|
|||||||
if not webnotes.has_permission("Attendance", "create"):
|
if not webnotes.has_permission("Attendance", "create"):
|
||||||
raise webnotes.PermissionError
|
raise webnotes.PermissionError
|
||||||
|
|
||||||
args = webnotes.form_dict
|
args = webnotes.local.form_dict
|
||||||
webnotes.local.uploadattendance_doclist = webnotes.model.doctype.get("Attendance")
|
webnotes.local.uploadattendance_doclist = webnotes.model.doctype.get("Attendance")
|
||||||
|
|
||||||
w = UnicodeWriter()
|
w = UnicodeWriter()
|
||||||
|
|||||||
Reference in New Issue
Block a user