Let cancel button on window form for readonly screen

issue3826
review4881003
This commit is contained in:
C?dric Krier 2014-04-07 18:22:06 +02:00
parent 2141b7e590
commit 61acafc93c
1 changed files with 1 additions and 1 deletions

View File

@ -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'),