diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-10-27 17:55:47 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-10-27 17:55:47 +0200 |
| commit | 6f8e40cdecaffe70b2ed8aa91afe787c94a0a2e5 (patch) | |
| tree | a9c027f4f9f610ca7763a8249d8b8f0ef0767e56 /addons/web/static/test/list.js | |
| parent | 7a65ec28b931e1e89cca7b8e9392b084010207d0 (diff) | |
| parent | 1304d13c7f59ecdef46b3bd8014f5ae8fe874c45 (diff) | |
[MERGE] forward port branch saas-11 up to 1304d13
Diffstat (limited to 'addons/web/static/test/list.js')
| -rw-r--r-- | addons/web/static/test/list.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/test/list.js b/addons/web/static/test/list.js index 9d1d1b9ec7d..49adabba13d 100644 --- a/addons/web/static/test/list.js +++ b/addons/web/static/test/list.js @@ -2,7 +2,7 @@ odoo.define_section('list.buttons', ['web.ListView', 'web.data', 'web.data_manag test('record-deletion', function (assert, ListView, data, data_manager) { assert.expect(2); - + mock.add('demo:read', function (args, kwargs) { if (_.isEqual(args[0], [1, 2, 3])) { return [ @@ -18,7 +18,9 @@ odoo.define_section('list.buttons', ['web.ListView', 'web.data', 'web.data_manag throw new Error(JSON.stringify(_.toArray(arguments))); }); mock.add('/web/dataset/call_button', function () { return false; }); - + mock.add('demo:fields_get', function() { + return {a: {type: 'char', string: "A"}}; + }); var ds = new data.DataSetStatic(null, 'demo', null, [1, 2, 3]); var fields_view = data_manager._postprocess_fvg({ |
