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)
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.