diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index 0052e4883b5..79173dbe6b2 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -706,7 +706,7 @@ class ProductTemplate(models.Model): # Be aware that the exact same function exists in product.product def action_open_quants(self): - return self.with_context(active_test=False).product_variant_ids.filtered(lambda p: p.qty_available != 0).action_open_quants() + return self.with_context(active_test=False).product_variant_ids.filtered(lambda p: p.active or p.qty_available != 0).action_open_quants() def action_update_quantity_on_hand(self): advanced_option_groups = [