[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:
vishmita
2012-05-11 15:27:07 +05:30
parent 8c0c6c1bd7
commit dc02b19045
+1
View File
@@ -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;