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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
1157
Lượt xem
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 12 24
|
1661 | ||
|
1
thg 8 24
|
1357 | ||
|
3
thg 6 25
|
1966 | ||
|
2
thg 5 25
|
1027 | ||
|
3
thg 4 25
|
1805 |