summaryrefslogtreecommitdiff
path: root/addons/website_form/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-08-20 18:08:19 +0200
committerChristophe Simonis <chs@odoo.com>2016-08-20 18:08:19 +0200
commit235ed4b2c1099720a6d5cfc5ada920f19fcef315 (patch)
tree2ddc3ae85462fe3cc6e70f9598958797695d12ff /addons/website_form/controllers/main.py
parentc3734ec5b622085a36e94bee36f92daabbae3e34 (diff)
parent9ad5f26b3fb98cd14527de80d19bf6554a6981e2 (diff)
[MERGE] forward port branch saas-12 up to 9ad5f26
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 621b5b80d18..742a8eeb0b7 100644
--- a/addons/website_form/controllers/main.py
+++ b/addons/website_form/controllers/main.py
@@ -220,7 +220,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,