diff --git a/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js b/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js index d8f5e7c7e01..02dd6be189c 100644 --- a/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js +++ b/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js @@ -74,7 +74,7 @@ odoo.define('point_of_sale.ClientListScreen', function(require) { } else { res = this.env.pos.db.get_partners_sorted(1000); } - return res.sort(function (a, b) { return a.name.localeCompare(b.name) }); + return res.sort(function (a, b) { return (a.name || '').localeCompare(b.name || '') }); } get isNextButtonVisible() { return this.state.selectedClient ? true : false;