Odoo Help


Unpaid Leaves is not decrease in the salary computation

on 5/3/13, 8:09 AM 5,340 views

I am new for OpenERP 7 Please help me... my doubt is i creating salary rule for unpaid leave for the following code "result=-(contract.wage/31)*worked_days.Unpaid.number_of_days"is working but it is not calculating in the net salary amount.. how to calculate it. my entry is correct or not experts use my openerp demo db username sridhartestopenerp@gmail.com password openerpmass please check it and tell the answer soon...

Regards Sridharan G Chennai

@sridhar finally solved Vote me Up if helped you ... http://help.openerp.com/question/16131/unpaid-leaves-deduction-not-working/

on 5/11/13, 6:03 AM
On 5/4/13, 6:02 AM

all you need is to change sequence of salary rule (Loss .. ) to be less than Net salary rule sequence and Gross see the not on

http: //doc.openerp.com/v7.0/book/4/4_11_HR/4_11_HR_payroll.html#salary-rule-categories

I can not post right like please modify it and see ,

Note: Sequence

Sequence plays a major role in the calculation and appearance of payslip lines. For example, a sequence defined on a rule calculating the Gross should always be greater than the sequence’s given on Allowance’s rules, else it won’t be considered in the calculation of Gross value.

Thank you Maath, now it is working correctly. sequence number is a problem. now solved.

on 5/4/13, 10:02 AM

@sridhar My pleasure that my effort helped you , can you select my answer as the solution

on 5/4/13, 10:13 AM

Very thankful for your help...

on 5/4/13, 10:34 AM

@sridhar Thanks , But why do not tic my answer as the solution and vote up my answer ?

on 5/4/13, 10:47 AM

Mr. Maath one more problem is there, if that employee didn't put any leave for a particular month this Loss of pay concept didn't work. i need if employee get leave means Lop calculation otherwise it is not needed. I think i need to change in Condition is changed to Python Expression its correct.

on 5/6/13, 1:41 AM

@sridhar you need to post new question about the condition when to apply this rule , of course you need to put python code to check total leave for employee . Please send me the link of your question after post it.

on 5/6/13, 3:45 AM

Error! Wrong python condition defined for salary rule this link, i cant post a link this a title of the error solve it please.

on 5/6/13, 5:29 AM

@sridhar , I am too now have the same error ! even when calculate for new month (Next month) there is wrong result (Sum (all of leave )) we need to Sum of leave for that month only

on 5/6/13, 5:45 AM

@sridhar , But when I create Payslips Batch the operation completed without any error! can you try that and then writ new question here so we will find some one solve this problem .

on 5/6/13, 6:04 AM

i can't do further process please do my demo database sridhartestopenerp@gmail.com password openerpmass db kgsridhar put one entry i will understand please do.

on 5/6/13, 6:08 AM

@sridhar I will do Are you ready ?

on 5/6/13, 6:13 AM

u put entry i will see now...

on 5/6/13, 6:15 AM

create one new employee or existing employee...

on 5/6/13, 6:17 AM

@sridhar No, You can do it just create new Payslips Batch

on 5/6/13, 6:18 AM

ok i put entry...

on 5/6/13, 6:25 AM

Error only comming...

on 5/6/13, 6:26 AM

Finally I solved the problem Vote me up if helped http://help.openerp.com/question/16131/unpaid-leaves-deduction-not-working/

on 5/11/13, 5:37 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.


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: 5/3/13, 8:09 AM
Seen: 5340 times
Last updated: 3/16/15, 8:10 AM