diff --git a/stock_analytic/models/stock.py b/stock_analytic/models/stock.py index 7e25ee7a55..9c7bf9370f 100644 --- a/stock_analytic/models/stock.py +++ b/stock_analytic/models/stock.py @@ -34,6 +34,12 @@ def _prepare_account_move_line(self, qty, cost, }) return res + @api.model + def _prepare_merge_moves_distinct_fields(self): + fields = super()._prepare_merge_moves_distinct_fields() + fields.append('analytic_account_id') + return fields + class StockMoveLine(models.Model): _inherit = "stock.move.line"