From acff087b01e03bf438e69749ef8d7f6447576e7b Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 6 Dec 2017 12:53:39 +0100 Subject: [PATCH] [FIX] point_of_sale: use defined variable Oversight of previous forward-port --- addons/point_of_sale/static/src/js/screens.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index f3a077cf881..71b3b655eb7 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1166,7 +1166,7 @@ var ClientListScreenWidget = ScreenWidget.extend({ save_changes: function(){ var order = this.pos.get_order(); if( this.has_client_changed() ){ - var default_fiscal_position_id = _.findWhere(this.pos.fiscal_positions, {'id': self.pos.config.default_fiscal_position_id[0]}); + var default_fiscal_position_id = _.findWhere(this.pos.fiscal_positions, {'id': this.pos.config.default_fiscal_position_id[0]}); if ( this.new_client ) { order.fiscal_position = _.findWhere(this.pos.fiscal_positions, {'id': this.new_client.property_account_position_id[0]}); order.set_pricelist(_.findWhere(this.pos.pricelists, {'id': this.new_client.property_product_pricelist[0]}) || this.pos.default_pricelist);