From 5ea18e2c19fedb3478b550b39f0578416a3ddace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 13 Mar 2015 16:42:55 +0100 Subject: [PATCH] Send the timestamps when executing a button action review6111002 --- src/screen.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index 67096c2ae1..7826e74c4a 100644 --- a/src/screen.js +++ b/src/screen.js @@ -1203,10 +1203,16 @@ return; } + var context = jQuery.extend(this.context); + context._timestamp = {}; + for (i = 0; i < selected_records.length; i++) { + record = selected_records[i]; + jQuery.extend(context, record.get_timestamp()); + } // TODO confirm this.current_record.save().done(function() { this.current_record.model.execute(attributes.name, - [ids], this.context).then(process_action.bind(this)) + [ids], context).then(process_action.bind(this)) .then(reload_ids); }.bind(this)); }.bind(this));