[FIX] point_of_sale : fix popup for bad VAT number
When an error occured server side, it was not properly displayed to the user. A popup with "Your Internet connection is probably down." appeared and behing it, a second, unstyled error contained the real error message. Prevent the server error to be displayed. Switch the order of parameters, the error data is contained in the first argument (to be able to diplay the real error). Fixes #25446 Closes #25753
This commit is contained in:
@@ -1281,7 +1281,8 @@ var ClientListScreenWidget = ScreenWidget.extend({
|
||||
})
|
||||
.then(function(partner_id){
|
||||
self.saved_client_details(partner_id);
|
||||
},function(type,err){
|
||||
},function(err,ev){
|
||||
ev.preventDefault();
|
||||
var error_body = _t('Your Internet connection is probably down.');
|
||||
if (err.data) {
|
||||
var except = err.data;
|
||||
|
||||
Reference in New Issue
Block a user