From e02cee4ea694d9a1f85db8c6c2286ea0480298aa Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Thu, 13 Apr 2017 14:11:03 +0200 Subject: [FIX] web: fix missing idForLabel on some widgets Widgets which manipulates their dom in _renderEdit were left out from the previous implementation since this processing was done only once when the widget is rendered the first time. If the widget regenerates a new input upon reset for example, then it would lack the idForLabel. --- .../web/static/tests/fields/basic_fields_tests.js | 25 ++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'addons/web/static/tests/fields/basic_fields_tests.js') diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js index fa5b1224728..4d14d47215c 100644 --- a/addons/web/static/tests/fields/basic_fields_tests.js +++ b/addons/web/static/tests/fields/basic_fields_tests.js @@ -120,13 +120,13 @@ QUnit.module('basic_fields', { QUnit.module('FieldBoolean'); QUnit.test('boolean field in form view', function (assert) { - assert.expect(7); + assert.expect(11); var form = createView({ View: FormView, model: 'partner', data: this.data, - arch: '
', + arch: '