diff --git a/addons/mrp/models/product.py b/addons/mrp/models/product.py index 6ef0e134f21..45cf8b0fbff 100644 --- a/addons/mrp/models/product.py +++ b/addons/mrp/models/product.py @@ -53,7 +53,7 @@ class ProductTemplate(models.Model): super()._compute_show_qty_status_button() for template in self: if template.is_kits: - template.show_on_hand_qty_status_button = True + template.show_on_hand_qty_status_button = template.product_variant_count <= 1 template.show_forecasted_qty_status_button = False def _compute_used_in_bom_count(self): diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml index 328d4e7925f..dbbd5b878b3 100644 --- a/addons/stock/views/product_views.xml +++ b/addons/stock/views/product_views.xml @@ -54,8 +54,9 @@ - - + + + @@ -157,9 +158,10 @@ + -
On hand:
+
On hand: