[FIX] Button@special=cancel should not trigger form save
bzr revid: fme@openerp.com-20111006121411-sltmagi0n068fbym
This commit is contained in:
@@ -909,7 +909,7 @@ openerp.web.form.WidgetButton = openerp.web.form.Widget.extend({
|
||||
return self.on_confirmed();
|
||||
}
|
||||
};
|
||||
if ((!this.node.attrs.special && this.view.dirty_for_user) || !this.view.datarecord.id) {
|
||||
if (!this.node.attrs.special && (this.view.dirty_for_user || !this.view.datarecord.id)) {
|
||||
return this.view.recursive_save().pipe(exec_action);
|
||||
} else {
|
||||
return exec_action();
|
||||
|
||||
Reference in New Issue
Block a user