Browse Source

[REF] Fix lint errors

pull/155/head
x620 8 years ago
committed by Vincent Van Rossem
parent
commit
7abdb0d87b
  1. 2
      pos_keyboard/__openerp__.py
  2. 10
      pos_keyboard/static/src/js/pos.js

2
pos_keyboard/__openerp__.py

@ -11,7 +11,7 @@
"price": 100.00, "price": 100.00,
"currency": "EUR", "currency": "EUR",
'data': [ 'data': [
'data.xml',
'data.xml',
], ],
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,

10
pos_keyboard/static/src/js/pos.js

@ -52,11 +52,11 @@ function pos_keyboard_widgets(instance, module){
bmode: 'qty, disc, price', bmode: 'qty, disc, price',
sign: '+, -', sign: '+, -',
backspace: 'backspace' backspace: 'backspace'
}
};
this.data = { this.data = {
type: undefined, type: undefined,
val: undefined val: undefined
}
};
this.action_callback = undefined; this.action_callback = undefined;
}, },
@ -71,7 +71,7 @@ function pos_keyboard_widgets(instance, module){
}, },
set_action_callback: function(callback){ set_action_callback: function(callback){
this.action_callback = callback
this.action_callback = callback;
}, },
//remove action callback //remove action callback
@ -177,7 +177,7 @@ function pos_keyboard_widgets(instance, module){
// stops catching keyboard events // stops catching keyboard events
disconnect: function(){ disconnect: function(){
$('body').off('keyup', '')
$('body').off('keyup', '');
} }
}); });
} }
@ -188,5 +188,5 @@ function pos_keyboard_widgets(instance, module){
_super(instance); _super(instance);
var module = instance.point_of_sale; var module = instance.point_of_sale;
pos_keyboard_widgets(instance, module); pos_keyboard_widgets(instance, module);
}
};
})(); })();
Loading…
Cancel
Save