Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2813 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

record.date_deadline+dateutil.relativedelta.relativedelta(days = +28)​
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
oct. 23
2832
0
oct. 23
2764
1
aug. 23
2692
1
aug. 23
3467
2
apr. 24
2215