From ac14fd4819efaef71c3a82332db47bf6ba629c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Fri, 3 Sep 2021 08:24:41 +0000 Subject: [PATCH] [IMP] stock,mrp: add lazy column in tree view It allows to read some fields (slow computation) after the render of the list without blocking the UI. task-2579011 Part-of: odoo/odoo#77092 --- addons/mrp/views/mrp_production_views.xml | 6 +- addons/stock/__manifest__.py | 6 +- .../stock/static/src/js/lazy_column_list.js | 187 ++++++++++++++++++ .../static/tests/lazy_column_list_tests.js | 91 +++++++++ addons/stock/views/stock_picking_views.xml | 6 +- 5 files changed, 289 insertions(+), 7 deletions(-) create mode 100644 addons/stock/static/src/js/lazy_column_list.js create mode 100644 addons/stock/static/tests/lazy_column_list_tests.js diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 44cb55c7887..d329b04a429 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -6,7 +6,7 @@ mrp.production.tree mrp.production - +