[FIX] barcode_events: set parent to WebClient during creation

This commit is contained in:
Joren Van Onder
2015-05-29 16:29:47 +02:00
committed by Frédéric van der Essen
parent 1323316ef2
commit cf8b61c3c6
2 changed files with 2 additions and 1 deletions
@@ -13,6 +13,7 @@ odoo.define('web.BarcodeEvents', function(require) {
init: function(parent) {
mixins.PropertiesMixin.init.call(this);
this.setParent(parent);
},
handle_buffered_keys: function() {
+1 -1
View File
@@ -37,7 +37,7 @@ var WebClient = Widget.extend({
this.menu_dm = new utils.DropMisordered();
this.action_mutex = new utils.Mutex();
this.set('title_part', {"zopenerp": "Odoo"});
this.barcode_events = new BarcodeEvents();
this.barcode_events = new BarcodeEvents(this);
},
start: function() {
var self = this;