Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2900 Представления

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
2901
0
окт. 23
2876
1
авг. 23
2782
1
авг. 23
3513
2
апр. 24
2272