[FIX]when discard modification and click on next record from pager again it gives warning.
lp bug: https://launchpad.net/bugs/997468 fixed bzr revid: vja@vja-desktop-20120511095707-jsqixg5c87u7itd4
This commit is contained in:
@@ -546,6 +546,7 @@ instance.web.FormView = instance.web.View.extend(_.extend({}, instance.web.form.
|
||||
},
|
||||
on_button_cancel: function(event) {
|
||||
if (this.can_be_discarded()) {
|
||||
this.on_record_loaded(this.datarecord);
|
||||
this.set({mode: "view"});
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user