From 06b91b7658f1d24ccd0cf6310b2dcbd1d3694601 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 23 Nov 2018 14:58:34 +0000 Subject: [PATCH] [FIX] web: benchmarks: add missing test_utils Without those, the benchmarks suite can't run. closes odoo/odoo#28996 --- .../web/static/tests/views/form_benchmarks.js | 17 ++++++++--------- addons/web/views/webclient_templates.xml | 10 ++++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/addons/web/static/tests/views/form_benchmarks.js b/addons/web/static/tests/views/form_benchmarks.js index d664859ba2f..b3edb07d0bb 100644 --- a/addons/web/static/tests/views/form_benchmarks.js +++ b/addons/web/static/tests/views/form_benchmarks.js @@ -1,4 +1,4 @@ -odoo.define('web.list_benchmarks', function (require) { +odoo.define('web.form_benchmarks', function (require) { "use strict"; var FormView = require('web.FormView'); @@ -38,7 +38,6 @@ QUnit.module('Form View', { this.run = function (assert, done, cb) { var data = this.data; var arch = this.arch; - var viewOptions = this.viewOptions; new Benchmark.Suite({}) .add('form', function () { var list = createView({ @@ -76,13 +75,13 @@ QUnit.module('Form View', { this.data.foo.records[0].many2many.push(i); } this.arch = - '
' - '' - '' - '' - '' - '' - '' + '' + + '' + + '' + + '' + + '' + + '' + + '' + '
'; this.run(assert, done, function (form) { form.$buttons.find('.o_form_button_edit').click(); diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 8a519b0d309..100b553b09d 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -679,6 +679,16 @@ display: inherit; } + + + + + + + + + +