[FIX] Fixed typo introduced in Revision:1041 revid:fme@openerp.com-20110914210445-ul8aax7g1q5b47c6

bzr revid: fme@openerp.com-20110915093857-rk9p682xpfoiy304
This commit is contained in:
Fabien Meghazi 2011-09-15 11:38:57 +02:00
parent 26047415fc
commit 10a724d65a
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ openerp.web.form.WidgetButton = openerp.web.form.Widget.extend({
},
on_click: function(saved) {
var self = this;
if ((!this.node.attrs.special && this.view.dirty_for_user && saved !== true) || !this.view.recordcount.id) {
if ((!this.node.attrs.special && this.view.dirty_for_user && saved !== true) || !this.view.datarecord.id) {
this.view.do_save(function() {
self.on_click(true);
});