Let cancel button on window form for readonly screen
issue3826 review4881003
This commit is contained in:
parent
2141b7e590
commit
61acafc93c
|
@ -42,7 +42,7 @@
|
|||
|
||||
var buttons = [];
|
||||
|
||||
if ((view_type == 'form') && !readonly) {
|
||||
if (view_type == 'form') {
|
||||
buttons.push({
|
||||
text: (!kwargs.new_ && this.screen.current_record.id < 0 ?
|
||||
'Delete' : 'Cancel'),
|
||||
|
|
Loading…
Reference in New Issue