From b4a318eba15d93116a72c50b4a59e04bb31c062a Mon Sep 17 00:00:00 2001 From: Mathieu Walravens Date: Fri, 10 Feb 2023 12:18:43 +0000 Subject: [PATCH] [FIX] stock: duplicate foreach keys in replenishment history Before this commit: The key used in the foreach, `line`, is an object, which is converted into the following string `[object Object]`, resulting in duplicate keys and display a traceback when changing the supplier on an orderpoint. After this commit: The key used is `line.name`, which is a unique date across the dataset, preventing any duplicate keys. opw-3168077 closes odoo/odoo#114254 X-original-commit: 364ba497fc86928bf4a7be5b6777f8e2fffdf127 Signed-off-by: Arnold Moyaux (arm) Signed-off-by: Walravens Mathieu (wama) --- addons/stock/static/src/widgets/json_widget.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/static/src/widgets/json_widget.xml b/addons/stock/static/src/widgets/json_widget.xml index 08bf10810fc..5872939dc73 100644 --- a/addons/stock/static/src/widgets/json_widget.xml +++ b/addons/stock/static/src/widgets/json_widget.xml @@ -35,7 +35,7 @@
- +