[cleanup] [minor] for territory fixed to applicable territory

This commit is contained in:
Akhilesh Darjee 2013-10-31 19:56:31 +05:30
parent e158cea77a
commit 9c1488a7c0

View File

@ -72,7 +72,7 @@ class DocType(DocListController):
# make a map of territory: [list of names]
# if list against each territory has more than one element, raise exception
territory_name = webnotes.conn.sql("""select `territory`, `parent`
from `tabFor Territory`
from `tabApplicable Territory`
where `parenttype`=%s and `parent` in (%s)""" %
("%s", ", ".join(["%s"]*len(names))), tuple([parenttype] + names))