Odoo Help


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.


payroll formulas python Please!!!

Oscar Martinez
on 8/29/14, 11:32 AM 879 views


I hereby request your assistance for a wage rule in payroll formulas, 

1 I want to add all the deductions of a ampleado so far this year to divide by the number of months paid to obtain an average. 

Ej. Result = [sum deductions] / [month year 2014] 

2 I want to get in a Python makes the number of the month in which we are? 

Ej. Result = [year month now 2014] 

very grateful 

best regards.

You need write following salary rule: result = payslip.sum('GROSS','2012-01-01',' 2012-12-31') OR result = payslip.sum('GROSS','2012-01-01')

Oscar Martinez
on 9/8/14, 2:18 PM

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)


Asked: 8/29/14, 11:32 AM
Seen: 879 times
Last updated: 3/16/15, 8:10 AM