تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2817 أدوات العرض

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
أكتوبر 23
2837
0
أكتوبر 23
2764
1
أغسطس 23
2692
1
أغسطس 23
3473
2
أبريل 24
2216