From 7cbe33efdfaafd992f903f34487526265db6ce39 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 17 Jun 2015 18:23:51 +0200 Subject: [PATCH] [FIX] web: relational widget: replace_with returned by the get_value must contains the updated lines. --- addons/web/static/src/js/views/form_relational_widgets.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/js/views/form_relational_widgets.js b/addons/web/static/src/js/views/form_relational_widgets.js index dae08f31a3b..eabc1b253c1 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -715,6 +715,11 @@ var AbstractManyField = common.AbstractField.extend({ } }); if ((!is_one2many || self.dataset.delete_all) && (replace_with_ids.length || starting_ids.length)) { + _.each(command_list, function (command) { + if (command[0] === COMMANDS.UPDATE) { + replace_with_ids.push(command[1]); + } + }); command_list.unshift(COMMANDS.replace_with(replace_with_ids)); }