From a346d3385ab517ede0f1feeaab7a548e4d4ff973 Mon Sep 17 00:00:00 2001 From: Marcos Venilton Batista Date: Fri, 21 Apr 2017 04:34:16 -0300 Subject: [PATCH] Update frappeclient.py (#3127) Pass the fields independent of the filters in get_doc --- frappe/frappeclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/frappeclient.py b/frappe/frappeclient.py index 10c5f505ba..30dd95536a 100644 --- a/frappe/frappeclient.py +++ b/frappe/frappeclient.py @@ -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)