[IMP] Make the popup accessible.

bzr revid: vta@openerp.com-20121107081738-kortakwtjj7s9k80
This commit is contained in:
vta vta@openerp.com 2012-11-07 09:17:38 +01:00
parent c275363921
commit 83405dba45
1 changed files with 3 additions and 3 deletions

View File

@ -3170,14 +3170,14 @@ instance.web.form.Many2OneButton = instance.web.form.AbstractField.extend({
},
on_click: function(ev) {
var self = this;
var popup = new instance.web.form.FormOpenPopup(this);
popup.show_element(
this.popup = new instance.web.form.FormOpenPopup(this);
this.popup.show_element(
this.field.relation,
this.get('value'),
this.build_context(),
{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);
});
},