diff --git a/addons/mrp/models/mrp_production.py b/addons/mrp/models/mrp_production.py
index 6c9451535fd..cd8adbb2984 100644
--- a/addons/mrp/models/mrp_production.py
+++ b/addons/mrp/models/mrp_production.py
@@ -744,8 +744,6 @@ class MrpProduction(models.Model):
@api.constrains('move_byproduct_ids')
def _check_byproducts(self):
for order in self:
- if any(float_compare(move.product_qty, 0.0, precision_rounding=move.product_uom.rounding or move.product_id.uom_id.rounding) <= 0 for move in order.move_byproduct_ids):
- raise ValidationError(_("The quantity produced of by-products must be positive."))
if any(move.cost_share < 0 for move in order.move_byproduct_ids):
raise ValidationError(_("By-products cost shares must be positive."))
if sum(order.move_byproduct_ids.mapped('cost_share')) > 100:
diff --git a/addons/mrp/models/stock_move.py b/addons/mrp/models/stock_move.py
index 720f2196e49..cc1ac61738e 100644
--- a/addons/mrp/models/stock_move.py
+++ b/addons/mrp/models/stock_move.py
@@ -444,11 +444,6 @@ class StockMove(models.Model):
def _prepare_merge_negative_moves_excluded_distinct_fields(self):
return super()._prepare_merge_negative_moves_excluded_distinct_fields() + ['created_production_id']
- def _merge_moves_fields(self):
- res = super()._merge_moves_fields()
- res['cost_share'] = sum(self.mapped('cost_share'))
- return res
-
def _compute_kit_quantities(self, product_id, kit_qty, kit_bom, filters):
""" Computes the quantity delivered or received when a kit is sold or purchased.
A ratio 'qty_processed/qty_needed' is computed for each component, and the lowest one is kept
diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml
index 93df559e008..1b6d11ddc14 100644
--- a/addons/mrp/views/mrp_production_views.xml
+++ b/addons/mrp/views/mrp_production_views.xml
@@ -396,7 +396,7 @@
-
+