diff options
| author | Arthur Maniet <arthurmaniet@me.com> | 2015-07-09 09:48:08 +0200 |
|---|---|---|
| committer | Arthur Maniet <arthurmaniet@me.com> | 2015-07-30 07:55:45 +0200 |
| commit | f45904f581edef42a7572101c10359c739b65d55 (patch) | |
| tree | ea1b4678adde8949cbdcaad64e12e068fed7655a /addons/web/static/src/js/web_client.js | |
| parent | 16402f679560e255b19514b020de0a18c02981ee (diff) | |
[REF] web: move barcode_events to module barcodes
If the module barcodes is installed, a BarcodeEvents singleton is
automatically instanciated. It listens to keypresses and, when a
sequence of keys represents a barcode, it broadcasts a 'barcode_scanned'
event on core.bus containing the barcode string.
Diffstat (limited to 'addons/web/static/src/js/web_client.js')
| -rw-r--r-- | addons/web/static/src/js/web_client.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/web/static/src/js/web_client.js b/addons/web/static/src/js/web_client.js index 5b73be852cd..37d6c10feba 100644 --- a/addons/web/static/src/js/web_client.js +++ b/addons/web/static/src/js/web_client.js @@ -15,7 +15,6 @@ var SystrayMenu = require('web.SystrayMenu'); var UserMenu = require('web.UserMenu'); var utils = require('web.utils'); var Widget = require('web.Widget'); -var BarcodeEvents = require('web.BarcodeEvents'); var QWeb = core.qweb; var _t = core._t; @@ -49,7 +48,6 @@ 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); }, start: function() { var self = this; @@ -344,9 +342,6 @@ var WebClient = Widget.extend({ this.$('.oe_webclient').toggleClass( 'oe_content_full_screen', fullscreen); }, - get_barcode_events: function() { - return this.barcode_events; - } }); return WebClient; |
