summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFrédéric van der Essen <fvdessen@gmail.com>2015-01-23 18:45:58 +0100
committerFrédéric van der Essen <fvdessen@gmail.com>2015-01-27 11:46:40 +0100
commitdbc8912bc3da78d600d9a0b72cbc6f2c666e185a (patch)
tree89e46a3cb937c93c1e1fd7b2ce42dacffac2ed28 /addons
parentf517b8a54dc07a7a9eeabc5a6759b64119ffe589 (diff)
[FIX] point_of_sale: this/self mismatch after refactor.
Diffstat (limited to 'addons')
-rw-r--r--addons/point_of_sale/static/src/js/popups.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/point_of_sale/static/src/js/popups.js b/addons/point_of_sale/static/src/js/popups.js
index e52d9be9669..f1d282f6c50 100644
--- a/addons/point_of_sale/static/src/js/popups.js
+++ b/addons/point_of_sale/static/src/js/popups.js
@@ -138,7 +138,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) {
show: function(options){
options = options || {};
var self = this;
- this._super();
+ this._super(options);
this.list = options.list || [];
this.renderElement();
@@ -167,7 +167,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) {
show: function(options){
options = options || {};
var self = this;
- this._super();
+ this._super(options);
this.renderElement();
this.$('input,textarea').focus();
@@ -176,10 +176,10 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) {
});
},
click_confirm: function(){
- var value = self.$('input,textarea').val();
- self.gui.close_popup();
+ var value = this.$('input,textarea').val();
+ this.gui.close_popup();
if( this.options.confirm ){
- this.options.confirm.call(self,value);
+ this.options.confirm.call(this,value);
}
},
});
@@ -197,7 +197,7 @@ openerp.point_of_sale.load_popups = function load_popups(instance, module) {
show: function(options){
options = options || {};
var self = this;
- this._super();
+ this._super(options);
this.inputbuffer = options.value || '';
this.renderElement();