Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2815 มุมมอง

Model: Task

Trigger: On Update

Trigger Fields: Stage (Task)

Before Update Domain: Stage is not = "Done"

Apply on: Stage= "Done"


I want to clone the (Done) task and add 28 days (4weeks) to the due date


I've tried to do it using Action To Do : Create a new record and i've done the cloning part but didn't figure out how to change the due date part (record.date_deadline).

I've tried to use

record.date_deadline=record.date_deadline+relativedelta(days=28)

 in the Value but it didn't work.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

It\ Can\ be\ done\ using\ this\ code:

record.date_deadline+dateutil.relativedelta.relativedelta(days = +28)​
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ต.ค. 23
2832
0
ต.ค. 23
2764
1
ส.ค. 23
2692
1
ส.ค. 23
3467
2
เม.ย. 24
2215