Odoo Help

Welcome!

This community 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.

0

Payroll : python code for NET not working

By
Ruma Shakya
on 4/18/16, 3:59 AM 276 views

Hello everyone!! 

I need the salary rule NET to function as:

Basic + Allowances -Salary deducted from No. of Unpaid leaves of the employee (i.e wage/30 *no of absent days) - 1% TDS 

The python code I used for this was:

if(worked_days==30):

result=(categories.Basic + categories.ALW + categories.Deduction)

elif:

result=(worked_days.WORK100.number_of_days * (contract.wage / 30) + categories.Deduction )

Its giving me error: Error!Wrong python code defined for salary rule Net (NET).
Does anybody knows what the problem is here? 

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/18/16, 3:59 AM
Seen: 276 times
Last updated: 4/18/16, 4:21 AM