I have searched and tried all the answers related to this such as https://www.odoo.com/forum/help-1/question/unpaid-leaves-deduction-not-working-16131, i.e, result=-(contract.wage/30)*worked_days.Unpaid.number_of_days but the Unpaid object seems to be not available and so i tried this https://www.odoo.com/forum/help-1/question/error-wrong-python-condition-defined-for-salary-rule-14949, i.e, result=-(contract.wage/31)*worked_days.number_of_days but now the my Leave deduction salary rule gives the amount as zero and the sequence number of my leave deduction salary number is less than net salary rule. What am i doing wrong?, Is it possible to create a salary rule to deduct unpaid leaves from the salary calculation in odoo 8?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1
Beantwoorden
5541
Weergaven
Yes, we can calculate the unpaid leaves on odoo 8, before that you have to create a rule. This rule must do calculation according to the list elements of leave dict, and use the code to access it.
I did create the rule, could you please elaborate on what i should in the rule, such as what kinda code should i use?
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
mrt. 25
|
2394 | ||
|
3
dec. 24
|
5546 | ||
How Can I write rules for Salary
Opgelost
|
|
1
sep. 23
|
13832 | |
|
0
mei 23
|
4035 | ||
|
1
mrt. 18
|
4806 |