Files
odoo_source/addons/l10n_ar_website_sale/controllers
Nasreddin Boulif (bon) 7418cf5eac [FIX] l10n_ar_website_sale: display error message for required fields
Steps to reproduce:

  - Install l10n_ar_website_sale
  - Go to shop and add a product to cart
  - Go to cart and click on `Checkout`
  - Ensure `AFIP Responsibility` is not field
  - Click on `Next`

Issue:

  Traceback raised.

Cause:

  During the validation of the form, even if the pre-validation (by
  calling super) returns an error for the afip fields because there
  are empty while they are required, we still try to get the code
  of the afip responsibility.

Solution:

  Return errors (from pre-validation) if any of the required afip fields
  are in errors before continuing the validation.

opw-2941199

closes odoo/odoo#98097

X-original-commit: b692f6e442f03d118bbb88d28ea215283e455254
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
2022-08-13 13:56:19 +02:00
..
…