From 917ba745ea188a622279b8e51723d6d3b8815535 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Tue, 12 Sep 2017 14:25:03 +0200 Subject: [FIX] web, account: display partner in reconciliation When selecting a partner in the reconciliation widget, using the SelectCreateDialog (Search More), the partner wasn't correctly displayed. This was due to a difference between the change format of the many2one ; when using the dialog, only the `id` is sent (while the `id` and `display_name` are sent when using the many2one dropdown). These two behaviours are now standardized and both now send `id` and `display_name`. It has the advantage of sparing some `name_get`s called by the model because the `display_name` was missing. This change implies some refactoring where the SelectCreateDialog was used. --- addons/web/static/tests/fields/relational_fields_tests.js | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/web/static/tests/fields/relational_fields_tests.js') diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index 45110c7cf9a..2020e0124f3 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -3463,7 +3463,6 @@ QUnit.module('relational_fields', { '', mockRPC: function (method, args) { if (args.method === 'write') { - // debugger; assert.deepEqual(args.args[1].turtles, [ [1, 3, {display_name: 'coucou', turtle_foo: 'has changed', turtle_int: 42}], ], "correct commands should be sent (only send changed values)"); -- cgit v1.2.3