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-editable.js | |
| parent | 7a65ec28b931e1e89cca7b8e9392b084010207d0 (diff) | |
| parent | 1304d13c7f59ecdef46b3bd8014f5ae8fe874c45 (diff) | |
[MERGE] forward port branch saas-11 up to 1304d13
Diffstat (limited to 'addons/web/static/test/list-editable.js')
| -rw-r--r-- | addons/web/static/test/list-editable.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/addons/web/static/test/list-editable.js b/addons/web/static/test/list-editable.js index be2acdb1365..4b88d9f06e5 100644 --- a/addons/web/static/test/list-editable.js +++ b/addons/web/static/test/list-editable.js @@ -196,6 +196,13 @@ odoo.define_section('list.edition', ['web.data', 'web.ListView', 'web.data_manag mock.add('demo:onchange', function () { return {}; }); + mock.add('demo:fields_get', function () { + return { + a: {type: 'char', string: "A"}, + b: {type: 'char', string: "B"}, + c: {type: 'char', string: "C"} + }; + }); } test('newrecord', function (assert, data, ListView, data_manager) { @@ -263,6 +270,13 @@ odoo.define_section('list.edition.events', ['web.data', 'web.ListView', 'web.dat mock.add('demo:read', function () { return [{ id: 1, a: 'foo', b: 'bar', c: 'baz' }]; }); + mock.add('demo:fields_get', function () { + return { + a: {type: 'char', string: "A"}, + b: {type: 'char', string: "B"}, + c: {type: 'char', string: "C"} + }; + }); } test('edition events',function (assert, data, ListView, data_manager) { @@ -345,6 +359,13 @@ odoo.define_section('list.edition.onwrite', ['web.data', 'web.ListView', 'web.da mock.add('demo:default_get', function () { return {}; }); mock.add('demo:create', function () { return 1; }); mock.add('demo:on_write', function () { return [42]; }); + mock.add('demo:fields_get', function () { + return { + a: {type: 'char', string: "A"}, + b: {type: 'char', string: "B"}, + c: {type: 'char', string: "C"} + }; + }); var ds = new data.DataSetStatic(null, 'demo', null, []); var fields_view = data_manager._postprocess_fvg({ |
