Hi I'm new at odoo and I'm trying to create a salary rule that calculates the salary based on how many days a employee worked for that I need to be able to get the amount of days in the month. This is the code I have
result
= worked_days.WORK100.number_of_days * (contract.wage / 30)
the code is working the only problem is that not all the months have 30 days, I need to be able to get the amount of days in a month for the code to be completed
Reference links:
1- http://learnopenerp.blogspot.com/2018/02/python-timedelta.html
2- http://learnopenerp.blogspot.com/2018/01/python-date-manipulation.html
Thank you for the links they were very usefull but how can I make those date imports in the salary rules code or how can I acces the .py file so I can make those imports?