diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-06-21 16:43:21 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-06-22 10:52:26 +0200 |
| commit | c62a4edcb04fb1e3d65dea056123cece72425b7e (patch) | |
| tree | ea8a615d6314998690c2debed6047c57222695b5 /addons/web/static/tests/fields/relational_fields_tests.js | |
| parent | 3de0715f12d1a965d444f2d1cc816ca3d740a839 (diff) | |
[FIX] web: set 0 as default value for numeric fields
When creating a new record, the numeric field default value should be 0 in order
to avoid manually setting mandatory fields to 0.
This behaviour has been removed with the new views but one wants to restore it.
The `mockRead` function has also been adapted in this commit because the server
returns 0 for unset numeric fields.
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields_tests.js')
| -rw-r--r-- | addons/web/static/tests/fields/relational_fields_tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index 628026f89e4..a1631e33139 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -2927,8 +2927,8 @@ QUnit.module('relational_fields', { assert.strictEqual(form.$('.o_data_row').length, 3, "sould have 3 records in one2many list"); - assert.strictEqual(form.$('.o_data_row').text(), "blip1.59yop1.5tototo1.550xphone", - "sould display the record values in one2many list"); + assert.strictEqual(form.$('.o_data_row').text(), "blip1.59yop1.50tototo1.550xphone", + "should display the record values in one2many list"); $('.o_form_button_save').click(); |
