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.


How to set input in salary rule

Naseeb Razaq
on 8/24/16, 2:46 AM 148 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.


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