Skip to content

Commit

Permalink
[IMP] Make the popup accessible.
Browse files Browse the repository at this point in the history
bzr revid: vta@openerp.com-20121107081738-kortakwtjj7s9k80
  • Loading branch information
vta vta@openerp.com committed Nov 7, 2012
1 parent c275363 commit 83405db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/web/static/src/js/view_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
},
Expand Down

0 comments on commit 83405db

Please sign in to comment.