diff options
| author | David <david.vidal@tecnativa.com> | 2018-05-22 14:33:08 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-05-23 09:16:32 +0200 |
| commit | 682ae1cc64e663ef46464083e86916106434d716 (patch) | |
| tree | 5b4079d49291cdb550f07852f3e0854320e75824 /addons/website_form/controllers | |
| parent | 45e2ee0a9b4657e88489ba946aaed40c04b5270b (diff) | |
[FIX] website_form: set meta field
Before this commit, if you enable website_form_enable_metadata, that
will crash with a "KeyError: 'meta'"
This commit closes #24848
Diffstat (limited to 'addons/website_form/controllers')
| -rw-r--r-- | addons/website_form/controllers/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py index f0ef484f1a9..5632d97f916 100644 --- a/addons/website_form/controllers/main.py +++ b/addons/website_form/controllers/main.py @@ -111,6 +111,7 @@ class WebsiteForm(http.Controller): 'record': {}, # Values to create record 'attachments': [], # Attached files 'custom': '', # Custom fields values + 'meta': '', # Add metadata if enabled } authorized_fields = model.sudo()._get_form_writable_fields() |
