Odoo Help

0

How to deduct salary from unpaid leaves

By
Hqamar
on 11/17/14, 6:23 AM 1,081 views

Hi , im new to odoo . Trying to explore payroll module , having difficulty in deducting salary while generating payslips

So far i have created salary rule "Unpaid leave" with code "UL" , its python code is 

result=-(contract.wage / 22)*(worked_days.no_of_days)

I have also approved unpaid leaves for an employee , when i try to compute payslip for that employee for the same month on which the leaves were approved , Unpaid Leave gives me amount zero . Am i missing something ...  Help would be appreciated 

 

It works when i hard code the value against "worked_days.no_of_days" . Somehow its not getting value of worked_days.no_of_days ...

Hqamar
on 11/17/14, 7:12 AM

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.

Register

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

2 follower(s)

Stats

Asked: 11/17/14, 6:23 AM
Seen: 1081 times
Last updated: 3/16/15, 8:10 AM