[imp] make related in m2o work

bzr revid: nicolas.vanhoren@openerp.com-20110826124418-d2vw72ulgse75hgh
This commit is contained in:
niv-openerp 2011-08-26 14:44:18 +02:00
parent 8b7c33e964
commit 393f146d77
2 changed files with 3 additions and 5 deletions

View File

@ -1558,12 +1558,11 @@ openerp.base.form.FieldMany2One = openerp.base.form.Field.extend({
action_id: related[2].id,
context: {
active_id: self.value[0],
active_ids: self.value[1],
active_ids: [self.value[0]],
active_model: self.field.relation
}
}, function(result) {
//TODO niv
debugger;
self.do_action(result.result);
});
}
});

View File

@ -376,8 +376,7 @@ openerp.base.Sidebar = openerp.base.Widget.extend({
this.sections = {};
},
start: function() {
var self = this;
this._super(this, arguments);
this._super(this);
this.$element.html(QWeb.render('Sidebar'));
this.$element.find(".toggle-sidebar").click(function(e) {
self.do_toggle();