[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user