From 5beeff02be0aeed4031b0d4a8aec2d95e2423964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 10 Jun 2021 08:55:31 +0000 Subject: [PATCH] [FIX] web: update owl from 1.3.0 to v1.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates owl to the latest release. It only contains a fix to better handle t-calls in nested t-slots Release on github: https://github.com/odoo/owl/releases/tag/v1.3.1 closes odoo/odoo#71989 X-original-commit: 5c66f47e849144f79ecf9dd63d51529be3510aff Signed-off-by: Aaron Bohy (aab) Signed-off-by: Géry Debongnie (ged) --- addons/web/static/lib/owl/owl.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/addons/web/static/lib/owl/owl.js b/addons/web/static/lib/owl/owl.js index f488ad7ea93..7706125ea83 100644 --- a/addons/web/static/lib/owl/owl.js +++ b/addons/web/static/lib/owl/owl.js @@ -1667,6 +1667,7 @@ ctx.variables = Object.create(null); ctx.parentNode = ctx.generateID(); ctx.allowMultipleRoots = true; + ctx.shouldDefineParent = true; ctx.hasParentWidget = true; ctx.shouldDefineResult = false; ctx.addLine(`let c${ctx.parentNode} = extra.parentNode;`); @@ -2376,7 +2377,9 @@ } // Step 4: add the appropriate function call to current component // ------------------------------------------------ - const parentComponent = `utils.getComponent(context)`; + const parentComponent = ctx.rootContext.shouldDefineParent + ? `parent` + : `utils.getComponent(context)`; const key = ctx.generateTemplateKey(); const parentNode = ctx.parentNode ? `c${ctx.parentNode}` : "result"; const extra = `Object.assign({}, extra, {parentNode: ${parentNode}, parent: ${parentComponent}, key: ${key}})`; @@ -5395,9 +5398,9 @@ exports.utils = utils; - __info__.version = '1.3.0'; - __info__.date = '2021-06-04T12:19:29.161Z'; - __info__.hash = '9cbcf20'; + __info__.version = '1.3.1'; + __info__.date = '2021-06-10T08:37:12.080Z'; + __info__.hash = 'd121155'; __info__.url = 'https://github.com/odoo/owl';