[FIX] website_form: set meta field

backport of 682ae1cc64

Before this commit, if you enable website_form_enable_metadata, that
will crash with a "KeyError: 'meta'"

This commit closes #24888
This commit is contained in:
David
2018-06-11 10:35:42 +02:00
committed by Jeremy Kersten
parent 64645457dd
commit 561ac24ca7
+1
View File
@@ -107,6 +107,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()