hi. Any one please tell me how to reduce the salary of an employee who take leave.
he/she take one leave in a month , then reduce rs.100 from his salary. Ie then remaining salary is 4900.How to configure this in openerp v7.0.
i assigned a salary rule (Deduction Towards Leave Availed) to salary structure.
there is a field for adding python code in this rule. how to implement my need through python code. please help..
You need to add salary rule to salary structure to deduct (add python code)
then you can deduct from salary depending on number of Unpaid leave taken by employee
and you need to put the condition for this rule (Not Always True )
result=worked_days.Unpaid and worked_days.Unpaid.number_of_days or False
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/14/13, 4:52 AM|
|Seen: 9398 times|
|Last updated: 10/8/15, 6:03 AM|