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)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.