コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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)​
アバター
破棄
関連投稿 返信 ビュー 活動
3
10月 23
2839
0
10月 23
2765
1
8月 23
2696
1
8月 23
3474
2
4月 24
2216