From 757bf105efe406511d7189cc51350937bccced4d Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Thu, 16 Mar 2017 13:43:53 -0700 Subject: [PATCH] [IMP] point_of_sale: user selection code style --- addons/point_of_sale/static/src/js/gui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/gui.js b/addons/point_of_sale/static/src/js/gui.js index a6e4a464951..7abb931d68e 100644 --- a/addons/point_of_sale/static/src/js/gui.js +++ b/addons/point_of_sale/static/src/js/gui.js @@ -244,10 +244,10 @@ var Gui = core.Class.extend({ } this.show_popup('selection',{ - 'title': options.title || _t('Select User'), + title: options.title || _t('Select User'), list: list, confirm: function(user){ def.resolve(user); }, - cancel: function(){ def.reject(); }, + cancel: function(){ def.reject(); }, is_selected: function(user){ return user === self.pos.get_cashier(); }, });