[FIX] problem with the discard button in form views
bzr revid: nicolas.vanhoren@openerp.com-20120622143849-makqspfqkqvp8rkt
This commit is contained in:
@@ -557,6 +557,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||
on_button_cancel: function(event) {
|
||||
if (this.can_be_discarded()) {
|
||||
this.set({mode: "view"});
|
||||
this.on_record_loaded(this.datarecord);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user