diff --git a/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js b/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js index 3c81482f335..c50ea05f991 100644 --- a/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js +++ b/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js @@ -44,6 +44,11 @@ odoo.define('point_of_sale.ClientDetailsEdit', function(require) { processedChanges[key] = value; } } + if (!processedChanges.name) { + return this.showPopup('ErrorPopup', { + title: _('A Customer Name Is Required'), + }); + } processedChanges.id = this.props.partner.id || false; this.trigger('save-changes', { processedChanges }); }