diff --git a/addons/purchase_stock/models/stock_move.py b/addons/purchase_stock/models/stock_move.py index ac406ed23ed..4036598a494 100644 --- a/addons/purchase_stock/models/stock_move.py +++ b/addons/purchase_stock/models/stock_move.py @@ -25,7 +25,10 @@ class StockMove(models.Model): @api.model def _prepare_merge_negative_moves_excluded_distinct_fields(self): - return super()._prepare_merge_negative_moves_excluded_distinct_fields() + ['created_purchase_line_ids'] + excluded_fields = super()._prepare_merge_negative_moves_excluded_distinct_fields() + ['created_purchase_line_id'] + if self.env['ir.config_parameter'].sudo().get_param('purchase_stock.merge_different_procurement'): + excluded_fields += ['procure_method'] + return excluded_fields def _compute_partner_id(self): # dropshipped moves should have their partner_ids directly set