diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index 80df8914d3..f9f8378526 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -28,6 +28,11 @@ class HelperForm(forms.ModelForm): self.helper.form_tag = False + # Check for errors from model validation + # If none, disable crispy form errors + if not self.errors: + self.helper.form_show_errors = False + """ Create a default 'layout' for this form. Ref: https://django-crispy-forms.readthedocs.io/en/latest/layouts.html diff --git a/InvenTree/build/templates/build/tabs.html b/InvenTree/build/templates/build/tabs.html index 2c45cd2361..8bdb2a3013 100644 --- a/InvenTree/build/templates/build/tabs.html +++ b/InvenTree/build/templates/build/tabs.html @@ -4,16 +4,29 @@