I am using OpenERP 6.1 - you might want to update it since it has a much better imho interface.
In 6.1, you add a salary rule to the salary structure that is associated with the employee contract.
The Salary rule will contain the calculation. In fact, you have two options:
1) write all the calculations in python code of one rule - something like this:
if categories.BASIC < 150: result = 0 elif categories.BASIC < 650: result = - categories.BASIC * 0.1 + 50 else: result = - categories.BASIC * 0.15 + 270
2) use a rule range condition based on .BASIC categories and define some rules with python:
# For 150 - 650 result = - categories.BASIC * 0.1 + 50
3) If you want to complicate it even more, go to the rules of the percentage value of the range of values, then you do not need to enter the python rule code in the rules, but you will have double the number of rules - one set for percent (-basis * 0.1) and one set for displacement (50)
Depends on what you prefer, as this will decide what payslip will look like. Although the financial effect will be the same.
Forgot to note that the sequence number is needed! .BASIC categories will only include rule values ββthat were previously calculated according to the serial number.
source share