[imp] make related in m2o work
bzr revid: nicolas.vanhoren@openerp.com-20110826124418-d2vw72ulgse75hgh
This commit is contained in:
parent
8b7c33e964
commit
393f146d77
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue