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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
1137
Views
You can do that using an Automated Action by following these steps:
- 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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Dec 24
|
1642 | ||
|
1
Aug 24
|
1336 | ||
|
3
Jun 25
|
1909 | ||
|
2
May 25
|
979 | ||
|
3
Apr 25
|
1757 |