From 7351a651a7bc4389c898e68afa8ed24e4ad94cb3 Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Fri, 22 Jun 2018 14:29:32 +0200 Subject: [PATCH] [FIX] mrp: bom cost report without lines traceback Usecase to reproduce: - Create a bom without line - Add a new line without filling the product_id Click on bom cost button that appears It crashes because the xml try to access item dict instead of using get and 'components' and 'lines' both not exist. --- addons/mrp/report/mrp_report_bom_structure.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/report/mrp_report_bom_structure.xml b/addons/mrp/report/mrp_report_bom_structure.xml index 2122a9e10f7..e7cc9964230 100644 --- a/addons/mrp/report/mrp_report_bom_structure.xml +++ b/addons/mrp/report/mrp_report_bom_structure.xml @@ -3,7 +3,7 @@