changeset 587fb41786de in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=587fb41786de
description:
Do not create new record if no editable is available
issue9249
review317281002
diffstat:
src/screen.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 7107f7a8f664 -r 587fb41786de src/screen.js
--- a/src/screen.js Thu Apr 23 22:38:46 2020 +0200
+++ b/src/screen.js Tue Apr 28 00:29:38 2020 +0200
@@ -1377,6 +1377,9 @@
prm = this.switch_view('form', undefined, false);
}
return prm.then(function() {
+ if (!this.current_view.editable) {
+ return;
+ }
var group;
if (this.current_record) {
group = this.current_record.group;