Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Please, i want to ask you i have a field in OpenERP.
And i want to know how can i call a salary rule that i have created to calculate a field that i will specify for my report.
Thanks a lot in advance.
You can use below variables in your salary rule:
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
These variables will work as a browse record for respective object.
if you want to access employee from payslip, you just have to define payslip.employee_id.
Hope this helps..!
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/24/15, 6:14 AM|
|Seen: 552 times|
|Last updated: 11/28/15, 6:59 AM|