Odoo Help


How to add expense of an employee in employee payslip?

on 4/15/13, 5:57 AM 2,433 views

I want to add expense amount of employee while creating their employee payslip. How to add expense amount in payslip?


Hi Remya,

You can use inputs of salary rules where you can have your own salary rule for expense and you can link that on salary structure of employee.

Regards, Mustufa

I tried it, but each time expense amount will be the varying one. Then how can i write it through a python code.

on 4/15/13, 9:54 AM

You can define new field on employee form Expenses (one2many) and then by browsing employee object in python code you can create salary rule.

Mustufa Rangwala (mra)
on 4/15/13, 9:58 AM
Ricardo Malla
On 10/26/13, 10:06 PM

Hello, can someone elaborate on this? I'm having my sales staff add their VARIABLE commission as an expense, and rhen I need to add it to the PaySlip so that I can print Base + Commission (expense).

I'm not clear how to Python Code that the approved commission (expense) gets added to the Payslip.

Any comments will be greatly appreciated.


Ricardo Malla

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

2 follower(s)


Asked: 4/15/13, 5:57 AM
Seen: 2433 times
Last updated: 9/26/17, 12:18 AM