diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 98ba49c8856..78d77cc080c 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -234,8 +234,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal on_removed_order: function(removed_order){ if( this.get('orders').isEmpty()){ this.add_new_order(); - } - if( this.get('selectedOrder') === removed_order){ + }else{ this.set({ selectedOrder: this.get('orders').last() }); } },