I want to import datetime inside rules but i cant
def last_day_of_month(date_value):
return date_value.replace(day = monthrange(date_value.year, date_value.month)[1])
result = last_day_of_month(payslip.date_from)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to import datetime inside rules but i cant
def last_day_of_month(date_value):
return date_value.replace(day = monthrange(date_value.year, date_value.month)[1])
result = last_day_of_month(payslip.date_from)
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.