Browse files

[FIX] website_sale: empty error message


Before this commit, the error message wasn't shown when a field was

Now, the error message shows correctly.

closes #29993
  • Loading branch information...
jpp-odoo committed Jan 7, 2019
1 parent df7953f commit c5a3b607e6ee5ad4cafc6e427490ff361b79c707
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/website_sale/controllers/
@@ -539,7 +539,7 @@ def checkout_form_validate(self, mode, all_form_values, data):
except ValidationError:
error["vat"] = 'error'

if [err for err in error.items() if err == 'missing']:
if [err for err in error.values() if err == 'missing']:
error_message.append(_('Some required fields are empty.'))

return error, error_message

0 comments on commit c5a3b60

Please sign in to comment.