summaryrefslogtreecommitdiff
path: root/addons/website_form/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-08-20 17:18:31 +0200
committerChristophe Simonis <chs@odoo.com>2016-08-20 17:18:31 +0200
commit9ad5f26b3fb98cd14527de80d19bf6554a6981e2 (patch)
tree771dc0267ad045abb1f2c4c77e814fbf7f3923d9 /addons/website_form/controllers/main.py
parentc3665fb5c9c9c50e9a8fd2d52e83c50f52d603aa (diff)
parent3a2147d95c8005ab7c1dbe4d94315e404ea5e5f9 (diff)
[MERGE] forward port branch saas-11 up to 3a2147d
Diffstat (limited to 'addons/website_form/controllers/main.py')
-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 e7520a1b2e0..b0935047f34 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,