[FIX] view_form copy

bzr revid: al@openerp.com-20121011200346-p0gq5tq1wsoqyx0a
This commit is contained in:
Antony Lesuisse 2012-10-11 22:03:46 +02:00
parent f830a534d6
commit 25181d3f51
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
var def = $.Deferred();
$.when(this.has_been_loaded).then(function() {
self.dataset.call('copy', [self.datarecord.id, {}, self.dataset.context]).then(function(new_id) {
return self.record_created({ result : new_id });
return self.record_created(new_id);
}).then(function() {
return self.to_edit_mode();
}).then(function() {