[IMP] Disable dirty form check until page view and buttons refactoring is done

bzr revid: fme@openerp.com-20111205094838-lddbf0tv64e8rxn1
This commit is contained in:
Fabien Meghazi
2011-12-05 10:48:38 +01:00
parent 20c2ebf9cc
commit 8aadbe5288
+1
View File
@@ -445,6 +445,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
return def.promise();
},
can_be_discarded: function() {
return true; // Disabled until the page view and button refactoring is done
return !this.is_dirty() || confirm(_t("Warning, the record has been modified, your changes will be discarded."));
},
/**