how to access unpaid leaves in salary rule while writing the python code
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
2
返信
3286
ビュー
You can write a rule In the salary rule to deduct the amount from the gross according to the number of Unpaid leaves
result=worked_days.Unpaid and worked_days.Unpaid.number_of_days and -(contract.wage/31)*worked_days.Unpaid.number_of_days or False
For more you can refer this answer https://www.odoo.com/forum/help-1/question/unpaid-leaves-deduction-not-working-16131
Heloo @hunain,
Phython code :-