hi,
i need to know how to add 55 years for current date time in odoo.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi,
i need to know how to add 55 years for current date time in odoo.
Hi,
Try this,
from datetime import datetime, timedelta date_55_year_after =datetime.now()+timedelta(months=660)
Like the months used above you can give days and year.
NB : 660 = 12 months * 55 years
Thanks
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 3 24
|
3788 | ||
|
0
thg 8 18
|
6471 | ||
|
3
thg 2 25
|
2485 | ||
|
0
thg 5 24
|
46 | ||
|
1
thg 4 24
|
2641 |