Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1297 Переглядів

We generate recurring field service tasks upon the confirmation of a sales order. The sales order also have a subscription. How can I stop the recurrence of the tasks and mark all of them as done when I end the subscription automatically?

Аватар
Відмінити
Автор Найкраща відповідь

You can do that using an Automated Action by following these steps:

  1. Create a new Automated Action with the following conditions:
  • Model: Sales Order
  • Trigger: On Save
  • Before Update Domain: 
    • Recurring is set
    • Subscription Status = In Progress
  • Apply On: 
    • Subscription Status = Churned
    • Recurring is set
  • Actions to Do:
  • Update Tasks associated to this sales > Recurrent to No (False)
  • Update Tasks associated to this sales > Task Done to Yes (True)
  • Update Tasks associated to this sales > State to Done
  • Update Tasks associated to this sales > Stage to Done


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 24
1807
1
серп. 24
1521
3
черв. 25
2119
2
трав. 25
1124
3
квіт. 25
1973