summaryrefslogtreecommitdiff
path: root/addons/website_form/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-08-19 16:59:29 +0200
committerChristophe Simonis <chs@odoo.com>2016-08-19 16:59:29 +0200
commitbc1a0a32ca80aaadd52e66115fe9c9ad4b26c2e0 (patch)
treee2ca10dde39d78301e100c76a76f3ab86fd509f3 /addons/website_form/controllers
parent2331bbf4b05d9e9f2ad5e56814ad440683882e3d (diff)
parent58cbcbae318f613c0e8239fbcfea59d0c3c33612 (diff)
[MERGE] forward port branch 9.0 up to 58cbcba
Diffstat (limited to 'addons/website_form/controllers')
-rw-r--r--addons/website_form/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py
index 1dddd28a23a..c816b8914ca 100644
--- a/addons/website_form/controllers/main.py
+++ b/addons/website_form/controllers/main.py
@@ -216,7 +216,7 @@ class WebsiteForm(http.Controller):
# If some attachments didn't match a field on the model,
# we create a mail.message to link them to the record
if orphan_attachment_ids:
- if model.name != 'mail.mail':
+ if model.model != 'mail.mail':
values = {
'body': _('<p>Attached files : </p>'),
'model': model.model,