You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
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;*/
|
|
});
|