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(); }, });