From 7553037b3842fc9f9de2f41d800f5fdabf1b0436 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Mon, 25 Nov 2019 17:57:27 +0100 Subject: [PATCH] [REM] beesdoo_shift_assets --- beesdoo_shift/__openerp__.py | 1 - .../static/src/js/barcode_scanner_focus.js | 35 ------------------- beesdoo_shift/views/beesdoo_shift_assets.xml | 10 ------ 3 files changed, 46 deletions(-) delete mode 100644 beesdoo_shift/static/src/js/barcode_scanner_focus.js delete mode 100644 beesdoo_shift/views/beesdoo_shift_assets.xml diff --git a/beesdoo_shift/__openerp__.py b/beesdoo_shift/__openerp__.py index fe75ebf..70c4ca9 100644 --- a/beesdoo_shift/__openerp__.py +++ b/beesdoo_shift/__openerp__.py @@ -23,7 +23,6 @@ "data/mail_template.xml", "security/group.xml", "security/ir.model.access.csv", - "views/beesdoo_shift_assets.xml", "views/task_template.xml", "views/res_config_view.xml", "views/task.xml", diff --git a/beesdoo_shift/static/src/js/barcode_scanner_focus.js b/beesdoo_shift/static/src/js/barcode_scanner_focus.js deleted file mode 100644 index 0b35e71..0000000 --- a/beesdoo_shift/static/src/js/barcode_scanner_focus.js +++ /dev/null @@ -1,35 +0,0 @@ -odoo.define('beesdoo_shift.barcode_scanner_focus', function (require) { -"use strict"; - - var core = require('web.core'); - - var FormViewBarcodeHandler = require('barcodes.FormViewBarcodeHandler'); - - var BarcodeHandlerUnfocus = FormViewBarcodeHandler.extend({ - _set_quantity_listener: function(event) { - console.log("TEST"); - this.super(); - }, - // Method is not called when a field is focus. - on_barcode_scanned: function(barcode) { - console.log("method called"); - this._super(barcode); - } - }); -core.form_widget_registry.add('barcode_handler_unfocus', BarcodeHandlerUnfocus); - -return BarcodeHandlerUnfocus; -/* - var Widget = require('web.Widget'); - var BarcodeHandlerUnfocus = Widget.extend({ - events: { - 'click .oe_stat_button': 'function_test', - } - function_test: function (){ - console.log("test handler") - }); - - }); - core.form_widget_registry.add('barcode_handler_unfocus', BarcodeHandlerUnfocus); - return BarcodeHandlerUnfocus;*/ -}); diff --git a/beesdoo_shift/views/beesdoo_shift_assets.xml b/beesdoo_shift/views/beesdoo_shift_assets.xml deleted file mode 100644 index 596495a..0000000 --- a/beesdoo_shift/views/beesdoo_shift_assets.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - -