diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-06 12:53:39 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-06 12:53:39 +0100 |
| commit | acff087b01e03bf438e69749ef8d7f6447576e7b (patch) | |
| tree | 15e90cc99701829f02a9ad965184ae2066227ea8 /addons | |
| parent | b1886ef60ef0e5e9fbfa547320d188b9598123fa (diff) | |
[FIX] point_of_sale: use defined variable
Oversight of previous forward-port
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/static/src/js/screens.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
