[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
This commit is contained in:
David
2018-05-23 09:16:32 +02:00
committed by Jeremy Kersten
parent 45e2ee0a9b
commit 682ae1cc64
+1
View File
@@ -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()