From 1f1924862eaa624cdee6a8730c6064cfda9ed594 Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Wed, 2 Mar 2022 14:45:41 +0000 Subject: [PATCH] [FIX] stock_picking_batch: fix print of batch transfer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce the bug: - Create a batch transfer with moves from the same warehouse to several locations, e.g: - Product A from `WH/stock` → `customer/stock1` - Product B from `WH/stock` → `customer/stock2` - Try to print the batch transfers Problem: Traceback is triggered because we do a loop only on location_from Solution: - We need to loop over location_from and location destination - Remove useless use of mapped opw-2768518 closes odoo/odoo#86082 X-original-commit: 6721d1dfe53fb8d301188f2fb4c21baa70c27b92 Signed-off-by: Steve Van Essche Signed-off-by: Djamel Touati (otd) --- .../report/report_picking_batch.xml | 97 +++++++++---------- 1 file changed, 46 insertions(+), 51 deletions(-) diff --git a/addons/stock_picking_batch/report/report_picking_batch.xml b/addons/stock_picking_batch/report/report_picking_batch.xml index 3ec31bff8b7..ca0a51d9fe1 100644 --- a/addons/stock_picking_batch/report/report_picking_batch.xml +++ b/addons/stock_picking_batch/report/report_picking_batch.xml @@ -70,60 +70,55 @@ - - - - - - -

FROM -

-

TO -

- - - - - - - - - - + + + + + + + + +

FROM +

+

TO +

+ + + + + + + + + + + + + + + +
+ + + +
+ + + + + + → - - - - - - - - - - - - - -
- - - -
- - - - - - → - - - - + + + + -
- - +
+ +