diff options
| author | Roberto López López (OpenERP) <rlo@openerp.com> | 2012-04-13 16:04:21 +0200 |
|---|---|---|
| committer | Roberto López López (OpenERP) <rlo@openerp.com> | 2012-04-13 16:04:21 +0200 |
| commit | 0d3cd92c1bb78c2e8dcfeaab9aaab2b4e735c6ed (patch) | |
| tree | 46f8470c65b51f366c99a9a539655ef5101bf688 | |
| parent | 2c142dbf9ab51c32645e429396fe03c572ee2865 (diff) | |
[fix] substitute this by self, this.shop is out of scope
bzr revid: rlo@openerp.com-20120413140421-w2ff0cryr96l5djk
| -rw-r--r-- | addons/point_of_sale/static/src/js/pos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/pos.js b/addons/point_of_sale/static/src/js/pos.js index 8554877d506..148fe1ae74d 100644 --- a/addons/point_of_sale/static/src/js/pos.js +++ b/addons/point_of_sale/static/src/js/pos.js @@ -1274,7 +1274,7 @@ openerp.point_of_sale = function(db) { return (self.shop.get('products')).reset(m); }); return $('.search-clear').click( function() { - (this.shop.get('products')).reset(products); + (self.shop.get('products')).reset(products); $('.searchbox input').val('').focus(); return $('.search-clear').fadeOut(); }); |
