Revert "feat: Allow utils inside Energy Point Rule condition " (#8152)
Revert "feat: Allow utils inside Energy Point Rule condition "
This commit is contained in:
commit
c4de05ec64
1 changed files with 1 additions and 4 deletions
|
|
@ -18,10 +18,7 @@ class EnergyPointRule(Document):
|
|||
frappe.cache_manager.clear_doctype_map('Energy Point Rule', self.name)
|
||||
|
||||
def apply(self, doc):
|
||||
whitelisted_globals = {
|
||||
'utils': frappe.utils
|
||||
}
|
||||
if frappe.safe_eval(self.condition, whitelisted_globals, {'doc': doc.as_dict()}):
|
||||
if frappe.safe_eval(self.condition, None, {'doc': doc.as_dict()}):
|
||||
multiplier = 1
|
||||
|
||||
if self.multiplier_field:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue