How to subtract two dates in an Automated Action ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
3518
화면
Here is an automated action that calculated the number of days between twos dates. As the datetime module is available everywhere, it's possible to use it in the automated action. Here is the python expression you can copy/past that return an integer.
(record.x_studio_end_date - record.x_studio_start_date).days
Result:
The 'Number of days' is calculated automatically with the Automated Action
The automated action :
We have been looking for that, thank you very much
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
2월 23
|
3015 | ||
|
1
2월 24
|
3140 | ||
|
1
10월 24
|
1664 | ||
|
2
10월 24
|
2877 | ||
|
2
10월 24
|
2988 |