Revert: check if single doctype exists
This commit is contained in:
parent
5e2757a9ee
commit
40d15f4c07
1 changed files with 3 additions and 2 deletions
|
|
@ -328,8 +328,9 @@ class Database:
|
|||
return self.get_values_from_single(fields, filters, doctype, as_dict, debug, update)
|
||||
|
||||
def get_values_from_single(self, fields, filters, doctype, as_dict=False, debug=False, update=None):
|
||||
if not frappe.model.meta.is_single(doctype):
|
||||
raise frappe.DoesNotExistError("DocType", doctype)
|
||||
# TODO
|
||||
# if not frappe.model.meta.is_single(doctype):
|
||||
# raise frappe.DoesNotExistError("DocType", doctype)
|
||||
|
||||
if fields=="*" or isinstance(filters, dict):
|
||||
# check if single doc matches with filters
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue