From d9a7e40f7ea56fc0d24017303546c02278485245 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Sat, 30 Sep 2017 12:07:37 +0200 Subject: [PATCH] [FIX] stock: only show original document, and not all rules applied --- addons/stock/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)