[FIX] barcode_events: set parent to WebClient during creation
This commit is contained in:
committed by
Frédéric van der Essen
parent
1323316ef2
commit
cf8b61c3c6
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user