From 4f750e705686617d48f73e93b87abeefb7fc87e2 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 8 May 2019 12:01:10 +0000 Subject: [PATCH] [REF] *: handle inline scripts preparing for frontend JS lazy loading * payment, im_livechat Inline scripts using `odoo.define` cannot work anymore as the boot.js file loading will be deferred. Most of features which used an inline script should probably be entirely refactored. This commit focuses on removing the inline scripts with a minimal diff (or at least tried to). Note: for the website livechat, the inline script was kept as it seems to be a longer refactoring to get rid of it (even though it is clearly possible). The inline script was however adapted to make sure it works with lazy loaded JS in the frontend. Part of https://github.com/odoo/odoo/pull/32181 task-1961045 --- .../views/im_livechat_channel_templates.xml | 4 +-- .../static/src/js/payment_processing.js | 34 +++++++------------ addons/payment/views/payment_templates.xml | 13 +------ 3 files changed, 15 insertions(+), 36 deletions(-) diff --git a/addons/im_livechat/views/im_livechat_channel_templates.xml b/addons/im_livechat/views/im_livechat_channel_templates.xml index 130e9d85478..b55cc1f9f49 100644 --- a/addons/im_livechat/views/im_livechat_channel_templates.xml +++ b/addons/im_livechat/views/im_livechat_channel_templates.xml @@ -189,7 +189,7 @@