[IMP] Make the popup accessible.
bzr revid: vta@openerp.com-20121107081738-kortakwtjj7s9k80
This commit is contained in:
parent
c275363921
commit
83405dba45
|
@ -3170,14 +3170,14 @@ instance.web.form.Many2OneButton = instance.web.form.AbstractField.extend({
|
||||||
},
|
},
|
||||||
on_click: function(ev) {
|
on_click: function(ev) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var popup = new instance.web.form.FormOpenPopup(this);
|
this.popup = new instance.web.form.FormOpenPopup(this);
|
||||||
popup.show_element(
|
this.popup.show_element(
|
||||||
this.field.relation,
|
this.field.relation,
|
||||||
this.get('value'),
|
this.get('value'),
|
||||||
this.build_context(),
|
this.build_context(),
|
||||||
{title: this.string + ' ' +_t("Voucher: ")}
|
{title: this.string + ' ' +_t("Voucher: ")}
|
||||||
);
|
);
|
||||||
popup.on('create_completed write_completed', self, function(r) {
|
this.popup.on('create_completed write_completed', self, function(r) {
|
||||||
self.set_value(r);
|
self.set_value(r);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue