[IMP] minor modification in field reference
bzr revid: nicolas.vanhoren@openerp.com-20121005091913-35dxdxb3q315mcp1
This commit is contained in:
parent
dcb8a9e441
commit
5677716100
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue