Odoo Help


the unpaid number of days is not computed in the employee payslips in odoo 8

on 9/6/16, 1:32 PM 181 views

i created a salary rule called Unpaid leave and it depends on a python code like this:

result= worked_days.Unpaid and worked_days.Unpaid.number_of_days*(contract.wage/31) or 0

and the employee took 2 days unpaid leaves

i added the rule to the salay structure of the employee

then in the payslips i compute sheet and show the salary computation tab but the Unpaid leave show as zero inspite of the 2 days leave of that emplayee

is the unpaid number of days is zero? and if not zero why it is not computed in the employee payslip?

Your Answer

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

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/6/16, 1:32 PM
Seen: 181 times
Last updated: 9/7/16, 5:19 AM