Website Form
website_form · odoo/odoo
Merged into website in 15.0
Replaces
website_form_metadata (12.0) · website_form_builder (13.0) · website_crm_recaptcha, website_form_recaptcha (14.0) Health
72/100
fair
-
Security22/251 minor finding
-
Activity0/25Last human commit 37 months ago
-
Required by25/257 modules depend on it
-
Maturity25/25In 6 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
7
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
1.16 MB
Module directory on disk
Code analysis
1 migration note
4 models
12 views
2 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE ir_model_fields SET website_form_blacklisted=true WHERE website_form_blacklisted IS NULL` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Customize and create your own web forms.
This module adds a new building block in the website builder in order to build new forms from scratch in any website page.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- crm_iap_lead_website, oca_all, website_crm, website_form_project, website_hr_recruitment, website_rma, website_sale
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 12
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_editor |
Website Form Editor Assets Editor | ir.ui.view | qweb | Inherits website.assets_editor |
assets_snippet_s_website_form_css_000 |
assets_snippet_s_website_form_css_000 | ir.ui.view | qweb | Inherits website.assets_frontend |
assets_snippet_s_website_form_css_001 |
assets_snippet_s_website_form_css_001 | ir.ui.view | qweb | Inherits website.assets_frontend |
assets_snippet_s_website_form_js_000 |
assets_snippet_s_website_form_js_000 | ir.ui.view | qweb | Inherits website.assets_frontend |
assets_tests |
Website Form Assets Tests | ir.ui.view | qweb | Inherits web.assets_tests |
contactus_form |
Contact Form | ir.ui.view | qweb | Inherits website.contactus |
ir_model_fields_view |
website_form_editor.ir.model.fields.view.form | ir.model.fields | form | Inherits base.view_model_fields_form |
ir_model_view |
website_form_editor.ir.model.view.form | ir.model | form | Inherits base.view_model_form |
remove_external_snippets |
remove_external_snippets | ir.ui.view | qweb | Inherits website.external_snippets |
s_website_form |
Form | ir.ui.view | qweb | New |
s_website_form_options |
s_website_form_options | ir.ui.view | qweb | Inherits website.snippet_options |
snippets |
Snippet Form Builder | ir.ui.view | qweb | Inherits website.snippets |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/website_form/<string:model_name> |
WebsiteForm.website_form |
public | http | POST | csrf off website |
/website_form/ |
WebsiteForm.website_form_empty |
public | http | POST |
Models touched 4
New fields (4)
-
website_form_accessBooleanhelp='Enable the form builder feature for this model.' args: 'Allowed to use in forms' -
website_form_default_field_idMany2one → ir.model.fieldsdomain="[('model', '=', model), ('ttype', '=', 'text')]"help='Specify the field which will contain meta and custom form fields datas.' args: 'ir.model.fields', 'Field for custom form data' -
website_form_keyCharhelp='Used in FormBuilder Registry' -
website_form_labelCharhelp="Form action label. Ex: crm.lead could be 'Send an e-mail' and project.issue could be 'Create an Issue'." args: 'Label for form action'
-
get_authorized_fields(self, model_name)@api.modelReturn the fields of the given model name as a mapping like method `fields_get`.
New fields (1)
-
website_form_blacklistedBooleandefault=Truehelp='Blacklist this field for web forms'index=True args: 'Blacklisted in web forms'
-
formbuilder_whitelist(self, model, fields)@api.model:param str model: name of the model on which to whitelist fields :param list(str) fields: list of fields to whitelist on the model :return: nothing of import -
init(self)
New fields (0)
No new fields.
Public methods (1)-
read_combined(self, fields=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…