Salary Head Condition Ignored
Bug #705827 reported by
Gerhard du Toit
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have the following condition in the salary head
(gross * 12) < 132001
Then with a gross salary of 15000 that head is still applied
V6.0.1 Ubuntu
description: | updated |
To post a comment you must log in.
Hello,
Your formula is wrong.This formula will pass boolean answer which is not the result.
consider the following formula exist in the code :
amount = line.amount * eval(str( line.category_ id.base) , obj)
here it will evaluate the result as a field name in small character which are in following way:
1) static field : basic, gross and net
2) Dynamic field which are code of allowances or deduction.
Hope this is enough for you.
Thanks.