Prevent delete record if screen is not deletable
Closes #13885 (grafted from 55434555b4c8e408cec6b08e53306335c17206ee) --HG-- branch : 7.0
This commit is contained in:
1 parent
1257b155a3
commit
22bedb2c79
1 file changed
+2
-1
+2
-1
@@ -901,7 +901,8 @@
|
||||
});
|
||||
},
|
||||
delete_: function() {
|
||||
if (!Sao.common.MODELACCESS.get(this.screen.model_name)['delete']) {
|
||||
if (!Sao.common.MODELACCESS.get(this.screen.model_name)['delete']
|
||||
|| !this.screen.deletable) {
|
||||
return jQuery.when();
|
||||
}
|
||||
var msg;
|
||||
|
||||
Reference in new issue
Block a user