From b58979fd3e2d1fbb33b7370fb93b8bc97d04272a Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 6 Apr 2017 18:58:39 +0530 Subject: [PATCH] [added] frappe.safe_eval --- erpnext/controllers/status_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 0421580563..f3019bf4d9 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -119,7 +119,7 @@ class StatusUpdater(Document): self.status = s[0] break elif s[1].startswith("eval:"): - if frappe.safe_eval(s[1][5:]): + if eval(s[1][5:]): self.status = s[0] break elif getattr(self, s[1])():