Odoo Help


How to add HR Expense to Employee Payslip

Ricardo Malla
on 10/27/13, 5:25 PM 939 views


I need assistance on how to add the HR Expense to the Employee Payslip; I believe this is done through the Salary Rules, but I do not know how to code this specifically, I don't see how I can code this with the available variables:

Available variables:


payslip: object containing the payslips

employee: hr.employee object

contract: hr.contract object

rules: object containing the rules code (previously computed)

categories: object containing the computed salary rule categories (sum of amount of all rules belonging to that category).

worked_days: object containing the computed worked days.

inputs: object containing the computed inputs.

Any support will be greatly appreciated.


Ricardo Malla

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

0 follower(s)


Asked: 10/27/13, 5:25 PM
Seen: 939 times
Last updated: 3/16/15, 8:10 AM