Trigger record saved after reload ids when execute button
The buttons of the toolbar must be updated after having saved the current record. Closes #13125
This commit is contained in:
1 parent
ed48f7e9dc
commit
1cb2174141
2 files changed
+5
-2
No files matched your search
+4
-2
@@ -1964,10 +1964,12 @@
|
||||
id: this.current_record.id,
|
||||
ids: ids
|
||||
}, null, this.context, true).always(() => {
|
||||
return this.reload(ids, true);
|
||||
return this.reload(ids, true)
|
||||
.always(() => this.record_saved());
|
||||
});
|
||||
} else {
|
||||
return this.reload(ids, true);
|
||||
return this.reload(ids, true)
|
||||
.always(() => this.record_saved());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1266,6 +1266,7 @@ class Screen:
|
||||
except RPCException:
|
||||
action = None
|
||||
self.reload(ids, written=True)
|
||||
self.record_saved()
|
||||
if isinstance(action, str):
|
||||
self.client_action(action)
|
||||
elif action:
|
||||
|
||||
Reference in new issue
Block a user