I have reordering rules on automatic for raw materials. But i don't need reordering rules for products for sale. Is it possible to make an automated action to remove reordering rules when the product category is updated to Product?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
 - e-Commerce
 - Contabilitate
 - Inventar
 - PoS
 - Project
 - MRP
 
Această întrebare a fost marcată
            
                1
                
                    Răspunde
                
            
        
        
            
                6360
                
                    Vizualizări
                
            
        
    You can do this by defining an automated action like so. Replace "Test" with the actual name of your product category ("Product" in your example above)
Python code:
for rule in env['stock.warehouse.orderpoint'].search([('product_id', 'in', record.product_variant_ids.ids)]):
  rule.unlink()
                Wow! You really saved me! Thank you so much Paresh!
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
| 
             | 
        
            
                
                0
            
            
             sept. 15  
         | 
        4929 | ||
| 
             | 
        
            
                
                0
            
            
             iul. 15  
         | 
        3774 | ||
| 
             | 
        
            
                
                0
            
            
             mar. 15  
         | 
        3794 | ||
| 
             | 
        
            
                
                2
            
            
             apr. 25  
         | 
        1792 | ||
| 
             | 
        
            
                
                3
            
            
             apr. 23  
         | 
        3225 |