Odoo Help


How to set input in salary rule

Naseeb Razaq
on 8/24/16, 2:46 AM 1,917 views

Hi Everyone !

I am creating a salary rule which includes an input field , as I create the rule having python code like (inputs.FSAL.amount), but when I generate a payslip for the same salary rule this input field is not showing on the payslip. Is it here any error in the rule for input or something else.

Thanks in advance



It's really hard to understand your problem based on information your provided but I would try to answer which steps you need to take care,

- configure Amount Type = Python Code in your salary rule, code should be, result = inputs.yourcode.amount

- 'yourcode' should be configured in field Code in the list of Inputs on the same salary rule

- add this salary rule in your salary structure

- once you create any payslip and choose employee, you will see that the Other Inputs list on payslip is auto populated and you can enter Amount.


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: 8/24/16, 2:46 AM
Seen: 1917 times
Last updated: 8/30/16, 10:32 AM