Skip to content
Snippets Groups Projects
Commit 025d2c96 authored by Joseph Caburnay's avatar Joseph Caburnay
Browse files

[FIX] point_of_sale: empty name check when editing customer info


User is not allowed to save an empty name for the customer details.
If tried, an error message is shown. This feature has been accidentally
dropped after the pos-owl-refactoring. We are restoring this behavior
in this commit.

closes odoo/odoo#60793

Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent d8790cce
Branches
Tags
No related merge requests found
......@@ -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 });
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment