summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/views/basic_model_tests.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2017-08-24 15:27:44 +0200
committerChristophe Matthieu <chm@odoo.com>2017-08-30 14:39:17 +0200
commit2728fe1ec1ac7e99819d0f30f29a1814b00c82a4 (patch)
tree89b1325b1ba3e86bc6ac830462c4694bc99553d2 /addons/web/static/tests/views/basic_model_tests.js
parent6cf98c4c87d644928897a76b9985947ab2ebc607 (diff)
[IMP] web: onchange x2many with virtual id in create command
When an onchange modifies an x2many field, the line on which the user works remains in editable mode and the cursor is returned to the same position. The second argument of create command is a reference used to reactivate the edited line.
Diffstat (limited to 'addons/web/static/tests/views/basic_model_tests.js')
-rw-r--r--addons/web/static/tests/views/basic_model_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/views/basic_model_tests.js b/addons/web/static/tests/views/basic_model_tests.js
index 318b715a504..2c5f6fe8993 100644
--- a/addons/web/static/tests/views/basic_model_tests.js
+++ b/addons/web/static/tests/views/basic_model_tests.js
@@ -1186,7 +1186,7 @@ QUnit.module('Views', {
data: this.data,
mockRPC: function (route, args) {
if (args.method === 'onchange' && args.args[1].total === 150) {
- assert.deepEqual(args.args[1].product_ids, [[0, false, {name: "xpod"}]],
+ assert.deepEqual(args.args[1].product_ids, [[0, args.args[1].product_ids[0][1], {name: "xpod"}]],
"Should have sent the create command in the onchange");
}
return this._super(route, args);