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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
            
                1
                
                    回复
                
            
        
        
            
                1905
                
                    查看
                
            
        
    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

| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|  | 1 12月 24  | 2531 | ||
|  | 1 8月 24  | 2052 | ||
|  | 2 10月 25  | 3903 | ||
|  | 3 6月 25  | 2826 | ||
|  | 2 5月 25  | 1537 | 
