From a3e24efc19e68dc838f645413cd392a64a9e3d8b Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 22 Jan 2020 14:27:17 +0000 Subject: [REF] web: remove custom useExternalListener hook This hook is now available in owl directly, so we remove its custom definition in Odoo, and adapt the code using it. --- addons/web/static/src/js/views/pivot/pivot_renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/views') diff --git a/addons/web/static/src/js/views/pivot/pivot_renderer.js b/addons/web/static/src/js/views/pivot/pivot_renderer.js index ac40dd68842..3b91cb137d4 100644 --- a/addons/web/static/src/js/views/pivot/pivot_renderer.js +++ b/addons/web/static/src/js/views/pivot/pivot_renderer.js @@ -1,11 +1,11 @@ odoo.define('web.PivotRenderer', function (require) { "use strict"; - const { useState, onMounted, onPatched } = owl.hooks; - const { useExternalListener } = require('web.custom_hooks'); const OwlAbstractRenderer = require('web.AbstractRendererOwl'); const field_utils = require('web.field_utils'); + const { useExternalListener, useState, onMounted, onPatched } = owl.hooks; + /** * Here is a basic example of the structure of the Pivot Table: * -- cgit v1.2.3