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)
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.