summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/pivot
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-01-22 14:27:17 +0000
committeraab-odoo <aab@odoo.com>2020-02-03 09:15:02 +0000
commita3e24efc19e68dc838f645413cd392a64a9e3d8b (patch)
treec99b7d1145117abb3650416a924330885922e961 /addons/web/static/src/js/views/pivot
parent6eadb1f7f6e23c0abdf570e704df9e5f87fb7bce (diff)
[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.
Diffstat (limited to 'addons/web/static/src/js/views/pivot')
-rw-r--r--addons/web/static/src/js/views/pivot/pivot_renderer.js4
1 files changed, 2 insertions, 2 deletions
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:
*