summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/relational_fields_tests.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-05-03 11:21:42 +0200
committerChristophe Simonis <chs@odoo.com>2018-05-03 11:21:42 +0200
commitad802d0d5521f5c2f5543d07f3913b49b97b9731 (patch)
treeee71cf4a714c43d28ff20758d44b707d45f86985 /addons/web/static/tests/fields/relational_fields_tests.js
parent87e21ccdc5c181960fa0d137e3ed880673032ca9 (diff)
parentc591e0de7d1762fef7f7a9c6c95d47438732c8cf (diff)
[MERGE] forward port branch 11.0 up to c591e0de7d1
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields_tests.js')
-rw-r--r--addons/web/static/tests/fields/relational_fields_tests.js46
1 files changed, 1 insertions, 45 deletions
diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js
index 1c050edf3f4..29d3dad6056 100644
--- a/addons/web/static/tests/fields/relational_fields_tests.js
+++ b/addons/web/static/tests/fields/relational_fields_tests.js
@@ -2331,50 +2331,6 @@ QUnit.module('relational_fields', {
QUnit.module('FieldOne2Many');
- QUnit.test('one2many with two inline views', function (assert) {
- assert.expect(1);
-
- // The inline list view has and uses a field that the inline form view doesn't have
- // We need to test that returning from the form view to the list view unfolds smoothly
- // Even if a field needed in the list is not set in the form
-
- var form = createView({
- View: FormView,
- model: 'partner',
- data: this.data,
- arch: '<form string="Partners">' +
- '<field name="turtles">' +
- '<tree>' +
- '<field name="turtle_foo"/>' +
- '<field name="display_name" attrs="{\'readonly\': [(\'turtle_foo\', \'=\', \'lol\')]}"/>' +
- '</tree>' +
- '<form>' +
- '<field name="display_name"/>' +
- '</form>' +
- '</field>' +
- '</form>',
- res_id: 1,
- viewOptions: {
- mode: 'edit',
- },
- });
-
- // Add a record with the form view
- form.$('.o_field_x2many_list .o_field_x2many_list_row_add a').click();
- var modal = $('.modal-dialog');
- // Fill in the only field
- modal.find('input[name=display_name]').val('lol').trigger('input');
- // Save the record
- modal.find('.btn-primary').first().click();
-
- // Now back to the list, verifying that the record is present
- var $newRecord = form.$('.o_field_x2many_list tbody .o_data_row').eq(1);
- assert.equal($newRecord.find('.o_data_cell').eq(1).text(), 'lol',
- 'We should have created a record in the One2Many');
-
- form.destroy();
- });
-
QUnit.test('one2many list editable with cell readonly modifier', function (assert) {
assert.expect(4);
@@ -5743,7 +5699,7 @@ QUnit.module('relational_fields', {
rpcCount++;
if (args.method === 'write') {
assert.deepEqual(args.args[1].p, [[0, args.args[1].p[0][1], {
- int_field: 123, product_id: 41, foo: false,
+ int_field: 123, product_id: 41
}]]);
}
return this._super(route, args);