diff --git a/ext/custom-addons/dp_custom/models/dp_custom.py b/ext/custom-addons/dp_custom/models/dp_custom.py index 3c3c7cf2..6cfd4ddb 100644 --- a/ext/custom-addons/dp_custom/models/dp_custom.py +++ b/ext/custom-addons/dp_custom/models/dp_custom.py @@ -29,10 +29,13 @@ class AbstractHelper(models.AbstractModel): @api.model def check_not_specified_fields(self, vals): specified_fields = self._get_specified_fields() - for key in list(vals.keys()): + invalid_keys = [] + for key in vals.keys(): if key not in specified_fields: - raise ValidationError( - _('Es befinden sich unerlaubte Felder in Ihrem Aufruf. Bitte entfernen Sie diese.')) + invalid_keys.append(key) + if invalid_keys: + raise ValidationError( + _('Es befinden sich unerlaubte Felder in Ihrem Aufruf. Bitte entfernen Sie diese: '+';'.join(invalid_keys))) return vals @api.model diff --git a/ext/custom-addons/dp_custom/views/res_partner_views.xml b/ext/custom-addons/dp_custom/views/res_partner_views.xml index 764f99e1..844f4621 100644 --- a/ext/custom-addons/dp_custom/views/res_partner_views.xml +++ b/ext/custom-addons/dp_custom/views/res_partner_views.xml @@ -65,6 +65,8 @@ + + diff --git a/ext/custom-addons/dp_custom/views/sale_views.xml b/ext/custom-addons/dp_custom/views/sale_views.xml index de6c24f5..6dc30428 100644 --- a/ext/custom-addons/dp_custom/views/sale_views.xml +++ b/ext/custom-addons/dp_custom/views/sale_views.xml @@ -137,6 +137,7 @@ +