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
|Asked: 11/24/15, 6:14 AM|
|Seen: 478 times|
|Last updated: 11/28/15, 6:59 AM|