[IMP] minor modification in field reference

bzr revid: nicolas.vanhoren@openerp.com-20121005091913-35dxdxb3q315mcp1
This commit is contained in:
niv-openerp 2012-10-05 11:19:13 +02:00
parent dcb8a9e441
commit 5677716100
1 changed files with 3 additions and 7 deletions

View File

@ -4601,18 +4601,14 @@ instance.web.form.FieldReference = instance.web.form.AbstractField.extend(instan
}
},
destroy_content: function() {
if (this.selection) {
this.selection.destroy();
this.selection = undefined;
}
if (this.m2o) {
this.m2o.destroy();
this.m2o = undefined;
if (this.fm) {
this.fm.destroy();
}
},
initialize_content: function() {
var self = this;
var fm = new instance.web.form.DefaultFieldManager(this);
this.fm = fm;
fm.extend_field_desc({
"selection": {
selection: this.field_manager.get_field_desc(this.name).selection,