Deduct Employee Salary Based On Unpaid Leaves || Odoo Community Payroll || Odoo 14 Payroll
Вставка
- Опубліковано 11 гру 2020
- #odoo14payroll #odoo13payroll #odoopayroll
How to deduct employee salary based on leave in Odoo. Manage employee salary and leave salary deduction in odoo community using the Odoo payroll module by Odoo Mates in the odoo store.
Download the Module:
1. apps.odoo.com/apps/modules/14...
2. apps.odoo.com/apps/modules/14...
Odoo 14 Payroll Management: • Odoo Payroll | How To ...
Salary Rule Used in Video:
result=-(contract.wage / worked_days.WORK100.number_of_days) * worked_days.Unpaid.number_of_days
Website: www.odoomates.tech/
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoomates - Наука та технологія
Great Sir. Please make a video about python code, Range and Child rule in salary rule. Thank you
sure will make a video on the same
This was Great .. thank you
Thanks :)
👍
thanks
How automatically came the work days and unpaid leave while choosing employee name ?
On my instance it not working sir . Give you advice on that
will this help ? ua-cam.com/video/0kaHMTtn7oY/v-deo.html
@@OdooMates Is this will work on odoo 15CE? I have purchased couple of your apps and all working fine. This one I am stuck with the unpiad leave deduction.
I used this python code on odoo 12 but it return error when i tried to calculate payslip
is there is any hint
Is the indentation of added code set correctly ?
@@OdooMates Yes , I copied it as it from odoo 14
Thank you it works now
the cod is ok
The problem was in calculating leave days
If Employee is not taking leave , and I add unpaid salary rule in salary structure it show error .
It affect the playslip batches sir.
can you send more details about how to reproduce it in email: odoomates@gmail.com, so that we can fix it
@@venkadesh5363 replied
What is Payroll Code on Time off configuration.
this code will be displayed in the payslip if user takes some leaves: github.com/odoomates/odooapps/commit/0cb1c24eb01b40d0ce4879a56554567effecc438
how to get paid leaves day on salary rule...?
by default there is no variable holding this values, we might have to customize and add it
if anyone gets this error while giving compute sheet ' bad python code' check you time off type "unpaid - code set as unpaid"
thanks for sharing
number of days getting error while computing
attribute error
Is it resolved ?
Hello sir. I got an error message ' bad python code'
is it resolved brother ?
@@OdooMates can you help please i am facing the same issue
@@marwanmkhusaibi can you share us the code that you have added
Paste the formula here plz !
github.com/odoomates/odooapps/blob/15.0/om_hr_payroll/data/hr_payroll_data.xml#:~:text=%3C!%2D%2D%20%20%20%20%20%20%20%20%3Crecord%20id%3D%22hr_rule_unpaid,%3C!%2D%2D%20%20%20%20%20%20%20%20%3C/record%3E%2D%2D%3E
Hi, I get an error "Wrong python code defined for salary rule Unpaid Leave (UNP)." when go to compute sheet of the payslip. I put the python code
result=-(contract.wage /
worked_days.WORK100.number_of_days) *
worked_days.Unpaid.number_of_days
Has there any solution for this?
I also have the same error, what is the solution? thank you for the response
Wrong python code defined for salary rule Unpaid Leave (UNPAID).
Error: : "'float' object has no attribute 'number_of_days'" while evaluating
'result =-(contract.wage/worked_days.WORK100.number_of_days)*worked_days.Unpaid.number_of_days
'
Is it resolved ?
@@OdooMates no