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.
in my country we deduct our employees with their lates * hourly rate. so basically i need to compute for the total late of an employee for the month and multiply it to the employee's hourly rate.
I have added 3 more fields in hr.attendance, they are undertime, overtime and late
now i would like to use these fields in a salary rule.but the problem is that the only variables that can be used are:
#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.
attendances isn't included in the variables that i can use in order to make the salary rule i need.
if anyone has encountered the same problem and have figured out a solution to this, or if anyone knows a solution to this. please help me :) God Bless thanks
Those variables are given just as an example !!!
You can access more existing variables.
Try to access your variables by: attendance.late, attendance.overtime ...
You have to install first, some modules (like hr_payroll_extension) from:
For V8.0 https://github.com/OCA/hr/tree/8.0
For V7.0 https://github.com/OCA/hr/tree/7.0
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: 8/31/14, 2:36 AM|
|Seen: 1484 times|
|Last updated: 3/16/15, 8:10 AM|