From 416f8f6316c8021b566bdcbd5d6793235873692a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 27 Oct 2017 11:00:39 +0200 Subject: [FIX] web: mock server should add a __last_update field A recent fix in web changed the field FieldImage to make sure it also loads a __last_update field. This is fine, except that a test in enterprise (web_clearbit_tests) was using a field image, and failed because it could not find the __last_update field in the demo data. With this commit, we make sure that the mock server is always aware of the __last_update field. --- addons/web/static/tests/fields/basic_fields_tests.js | 1 - 1 file changed, 1 deletion(-) (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 1d1eccf207d..c6feea74b77 100644 --- a/addons/web/static/tests/fields/basic_fields_tests.js +++ b/addons/web/static/tests/fields/basic_fields_tests.js @@ -1429,7 +1429,6 @@ QUnit.module('basic_fields', { QUnit.test('image fields are correctly rendered', function (assert) { assert.expect(6); - this.data.partner.fields.__last_update = {string: "Last updated", type: "datetime"}; this.data.partner.records[0].__last_update = '2017-02-08 10:00:00'; this.data.partner.records[0].document = 'myimage'; -- cgit v1.2.3