[fix] salary slip eval, remove access to globals, #8313
This commit is contained in:
parent
549a2827e5
commit
08a42e00ae
@ -76,7 +76,7 @@ class SalarySlip(TransactionBase):
|
||||
def eval_condition_and_formula(self, d, data):
|
||||
try:
|
||||
if d.condition:
|
||||
if not eval(d.condition, None, data):
|
||||
if not eval(d.condition, {}, data):
|
||||
return None
|
||||
amount = d.amount
|
||||
if d.amount_based_on_formula:
|
||||
|
Loading…
Reference in New Issue
Block a user