[FIX] shallow-copy info passed into Editor#edit to avoid mutating an object owned by somebody else

bzr revid: xmo@openerp.com-20120702110733-0qp0ki3hbw5b2nd3
This commit is contained in:
Xavier Morel 2012-07-02 13:07:33 +02:00
parent d1eeaaa51e
commit c262b2d1ae
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ openerp.web.list_editable = function (instance) {
edit: function (record, configureField) {
var self = this;
var form = self.form;
record = _.extend({}, record);
form.on_record_loaded(record).pipe(function () {
return form.do_show({reload: false});
}).then(function () {