[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,
|
action_id: related[2].id,
|
||||||
context: {
|
context: {
|
||||||
active_id: self.value[0],
|
active_id: self.value[0],
|
||||||
active_ids: self.value[1],
|
active_ids: [self.value[0]],
|
||||||
active_model: self.field.relation
|
active_model: self.field.relation
|
||||||
}
|
}
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
//TODO niv
|
self.do_action(result.result);
|
||||||
debugger;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -376,8 +376,7 @@ openerp.base.Sidebar = openerp.base.Widget.extend({
|
||||||
this.sections = {};
|
this.sections = {};
|
||||||
},
|
},
|
||||||
start: function() {
|
start: function() {
|
||||||
var self = this;
|
this._super(this);
|
||||||
this._super(this, arguments);
|
|
||||||
this.$element.html(QWeb.render('Sidebar'));
|
this.$element.html(QWeb.render('Sidebar'));
|
||||||
this.$element.find(".toggle-sidebar").click(function(e) {
|
this.$element.find(".toggle-sidebar").click(function(e) {
|
||||||
self.do_toggle();
|
self.do_toggle();
|
||||||
|
|
Loading…
Reference in New Issue