Ask to save modified record before execute action

issue9880
review318921005
This commit is contained in:
Cédric Krier committed 2020-12-04 18:41:38 +01:00
1 parent 1ca1c35fc8
commit 32bf70a424
1 file changed
+1 -5
+1 -5
View File
@@ -640,11 +640,7 @@
}).text(action.name))
.click(function(evt) {
evt.preventDefault();
var prm = jQuery.when();
if (this.screen.modified()) {
prm = this.save();
}
prm.then(function() {
this.modified_save().then(function() {
var exec_action = jQuery.extend({}, action);
var record_id = null;
if (screen.current_record) {