diff options
| -rw-r--r-- | addons/website_form/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py index fd42ef8da0b..9493f15a17b 100644 --- a/addons/website_form/controllers/main.py +++ b/addons/website_form/controllers/main.py @@ -206,7 +206,7 @@ class WebsiteForm(http.Controller): for file in files: custom_field = file.field_name not in authorized_fields attachment_value = { - 'name': file.field_name if custom_field else file.filename, + 'name': file.filename, 'datas': base64.encodestring(file.read()), 'datas_fname': file.filename, 'res_model': model.model, |
