diff --git a/addons/mrp/models/stock_move.py b/addons/mrp/models/stock_move.py index 09f5e35bea4..5f7c50a9b94 100644 --- a/addons/mrp/models/stock_move.py +++ b/addons/mrp/models/stock_move.py @@ -218,6 +218,11 @@ class StockMove(models.Model): continue move.should_consume_qty = float_round((mo.qty_producing - mo.qty_produced) * move.unit_factor, precision_rounding=move.product_uom.rounding) + @api.depends('byproduct_id') + def _compute_show_info(self): + super()._compute_show_info() + self.filtered(lambda m: m.byproduct_id or m in self.production_id.move_finished_ids).show_quant = False + @api.onchange('product_uom_qty') def _onchange_product_uom_qty(self): if self.raw_material_production_id and self.has_tracking == 'none':