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
คำถามนี้ถูกตั้งค่าสถานะ
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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
ก.พ. 23
|
2956 | ||
|
1
ก.พ. 24
|
3072 | ||
|
1
ต.ค. 24
|
1566 | ||
Auto Increment Odoo 17 Studio Fields
แก้ไขแล้ว
|
|
2
ต.ค. 24
|
2824 | |
|
2
ต.ค. 24
|
2919 |