diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index 1c80d61f316..2ca5daad983 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -686,7 +686,7 @@ class StockMove(models.Model): # create procurements for make to order moves for move in move_create_proc: values = move._prepare_procurement_values() - origin = (move.group_id and (move.group_id.name + ":") or "") + (move.rule_id and move.rule_id.name or move.origin or move.picking_id.name or "/") + origin = (move.group_id and move.group_id.name or (move.rule_id and move.rule_id.name or move.origin or move.picking_id.name or "/")) self.env['procurement.group'].run(move.product_id, move.product_uom_qty, move.product_uom, move.location_id, move.rule_id and move.rule_id.name or "/", origin, values)