diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-09-11 18:56:15 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-09-11 18:56:15 +0200 |
| commit | 73bb71b80ce0e8dd0ca674d202496d05a483f5b3 (patch) | |
| tree | a57dda6984f4b3ce0ed86b047b5556142324adc7 /addons/web/static/tests/helpers/test_utils.js | |
| parent | fdc4ef97c9d09ce07aa2e747041d973a3e607af5 (diff) | |
| parent | 295a377e5d4ecaa9afe66b6d40ebf3ecbfedc6ea (diff) | |
[MERGE] forward port branch saas-16 up to 295a377e5d4
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
| -rw-r--r-- | addons/web/static/tests/helpers/test_utils.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js index e2007106ecd..0939b0fc196 100644 --- a/addons/web/static/tests/helpers/test_utils.js +++ b/addons/web/static/tests/helpers/test_utils.js @@ -129,7 +129,7 @@ function createAsyncView(params) { // add mock environment: mock server, session, fieldviewget, ... var mockServer = addMockEnvironment(widget, params); - var viewInfo = mockServer.fieldsViewGet(params.arch, params.model, params.toolbar); + var viewInfo = mockServer.fieldsViewGet(params); // create the view var viewOptions = { @@ -321,10 +321,17 @@ function addMockEnvironment(widget, params) { var view_type = view_descr[1]; var key = [model, view_id, view_type].join(','); var arch = params.archs[key]; + var viewParams = { + arch: arch, + model: model, + viewOptions: { + context: event.data.context.eval(), + }, + }; if (!arch) { throw new Error('No arch found for key ' + key); } - views[view_type] = mockServer.fieldsViewGet(arch, model); + views[view_type] = mockServer.fieldsViewGet(viewParams); }); event.data.on_success(views); |
