Update frappeclient.py (#3127)

Pass the fields independent of the filters in get_doc
This commit is contained in:
Marcos Venilton Batista 2017-04-21 04:34:16 -03:00 committed by Rushabh Mehta
parent 3d78df3712
commit a346d3385a

View file

@ -165,8 +165,8 @@ class FrappeClient(object):
params = {}
if filters:
params["filters"] = json.dumps(filters)
if fields:
params["fields"] = json.dumps(fields)
if fields:
params["fields"] = json.dumps(fields)
res = self.session.get(self.url + "/api/resource/" + doctype + "/" + name,
params=params, verify=self.verify)