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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
3455
瀏覽次數
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
|
2955 | ||
|
1
2月 24
|
3072 | ||
|
1
10月 24
|
1566 | ||
|
2
10月 24
|
2824 | ||
|
2
10月 24
|
2919 |