Web Editor
web_editor · odoo/odoo
Merged into html_editor in 19.0
website_mail_snippet_bg_color via web_editor_background_color (9.0) · web_editor_background_color (14.0) · pad (16.0)-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by25/2515 modules depend on it
-
Maturity25/25In 10 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Description
Odoo Web Editor widget.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- base_fontawesome_web_editor, base_group_subcontractor, document_page, mass_mailing, oca_all, point_of_sale, portal, sign_oca, test_html_field_history, web_editor_class_selector, web_editor_disable_chatgpt, web_editor_media_dialog_dms, web_unsplash, website, website_form_require_legal
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
s_hr |
Separator | ir.ui.view | qweb | New |
snippet_options |
snippet_options | ir.ui.view | qweb | New |
snippet_options_background_color_widget |
snippet_options_background_color_widget | ir.ui.view | qweb | New |
snippet_options_background_options |
snippet_options_background_options | ir.ui.view | qweb | New |
snippet_options_image_optimization_widgets |
snippet_options_image_optimization_widgets | ir.ui.view | qweb | New |
snippet_options_version_control |
snippet_options_version_control | ir.ui.view | qweb | New |
snippets |
snippets | ir.ui.view | qweb | New |
web_editor.colorpicker |
Color-Picker | ir.ui.view | qweb | New |
web_editor.tests |
web_editor.tests | ir.ui.view | qweb | New |
HTTP endpoints 9
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/web_editor/font_to_img/<icon>, /web_editor/font_to_img/<icon>/<color>, /web_editor/font_to_img/<icon>/<color>/<int:size>, /web_editor/font_to_img/<icon>/<color>/<int:width>x<int:height>, /web_editor/font_to_img/<icon>/<color>/<int:size>/<int:alpha>, /web_editor/font_to_img/<icon>/<color>/<int:width>x<int:height>/<int:alpha>, /web_editor/font_to_img/<icon>/<color>/<bg>, /web_editor/font_to_img/<icon>/<color>/<bg>/<int:size>, /web_editor/font_to_img/<icon>/<color>/<bg>/<int:width>x<int:height>, /web_editor/font_to_img/<icon>/<color>/<bg>/<int:width>x<int:height>/<int:alpha> |
Web_Editor.export_icon_to_png |
none | http | ALL | |
/web_editor/get_assets_editor_resources |
Web_Editor.get_assets_editor_resources |
user | json | ALL | website |
/web_editor/image_shape/<string:img_key>/<module>/<path:filename> |
Web_Editor.image_shape |
public | http | ALL | website |
/web_editor/media_library_search |
Web_Editor.media_library_search |
user | json | ALL | sudo website |
/web_editor/attachment/remove |
Web_Editor.remove |
user | json | ALL | website |
/web_editor/tests |
Web_Editor.test_suite |
user | http | ALL | |
/web_editor/checklist |
Web_Editor.update_checklist |
user | json | ALL | |
/web_editor/field/translation/update |
Web_Editor.update_field_translation |
user | json | ALL | website |
/web_editor/stars |
Web_Editor.update_stars |
user | json | ALL |
Models touched 26
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
web_update_field_translations(self, fname, translations)
-
html_field_historyJsonprefetch=False args: 'History data' -
html_field_history_metadataJsoncompute='_compute_metadata' args: 'History metadata'
-
create(self, vals_list)@api.model_create_multi -
html_field_history_get_comparison_at_revision(self, field_name, revision_id)For the requested field, Get a comparison between the current content of the field and the content restored at the requested revision_id. :param str field_name: the name of the field :param int revision_id: id of the last revision to compare :return: string: the comparison -
html_field_history_get_content_at_revision(self, field_name, revision_id)Get the requested field content restored at the revision_id. :param str field_name: the name of the field :param int revision_id: id of the last revision to restore :return: string: the restored content -
write(self, vals)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (3)-
attributes(self, record, field_name, options, values)@api.model -
from_html(self, model, field, element)@api.model -
value_from_string(self, value)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values)@api.model -
get_record_to_html(self, ids, options=None)@api.model
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values)@api.model -
from_html(self, model, field, element)@api.model
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values)@api.model -
from_html(self, model, field, element)@api.model
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values)@api.model -
from_html(self, model, field, element)@api.model
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model
No new fields.
Public methods (3)-
from_html(self, model, field, element)@api.model -
load_local_url(self, url) -
load_remote_url(self, url)
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values)@api.model -
from_html(self, model, field, element)@api.model
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
No new fields.
Public methods (13)-
delete_snippet(self, view_id, template_key)@api.model -
extract_embedded_fields(self, arch)@api.model -
extract_oe_structures(self, arch)@api.model -
get_default_lang_code(self)@api.model -
get_related_views(self, key, bundles=False)@api.modelGet inherit view's informations of the template ``key``. returns templates info (which can be active or not) ``bundles=True`` returns also the asset bundles -
rename_snippet(self, name, view_id, template_key)@api.model -
replace_arch_section(self, section_xpath, replacement, replace_tail=False) -
save(self, value, xpath=None)Update a view section. The view section may embed fields to write Note that `self` record might not exist when saving an embed field :param str xpath: valid xpath to the tag to replace -
save_embedded_field(self, el)@api.model -
save_oe_structure(self, el) -
save_snippet(self, name, arch, template_key, snippet_key, thumbnail_url)@api.modelSaves a new snippet arch so that it appears with the given name when using the given snippets template. :param name: the name of the snippet to save :param arch: the html structure of the snippet to save :param template_key: the key of the view regrouping all snippets in which the snippet to save is meant to appear :param snippet_key: the key (without module part) to identify the snippet from which the snippet to save originates :param thumbnail_url: the url of the thumbnail to use when displaying the snippet to save -
to_empty_oe_structure(self, el)@api.model -
to_field_ref(self, el)@api.model
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
reset_asset(self, url, bundle)@api.modelDelete the potential customizations made to a given (original) asset. Params: url (str): the URL of the original asset (scss / js) file bundle (str): the name of the bundle in which the customizations to delete were made -
save_asset(self, url, bundle, content, file_type)@api.modelCustomize the content of a given asset (scss / js). Params: url (src): the URL of the original asset to customize (whether or not the asset was already customized) bundle (src): the name of the bundle in which the customizations will take effect content (src): the new content of the asset (scss / js) file_type (src): either 'scss' or 'js' according to the file being customized
-
binaryBinaryattachment=False -
charChar -
dateDate -
datetimeDatetime -
floatFloat -
htmlHtml -
integerInteger -
many2oneMany2one → web_editor.converter.test.subargs: 'web_editor.converter.test.sub' -
numericFloatdigits=(16, 2) -
selection_strSelectionstring="Lorsqu'un pancake prend l'avion à destination de Toronto et qu'il fait une escale technique à St Claude, on dit:" args: [('A', "Qu'il n'est pas arrivé à Toronto"), ('B', "Qu'il était supposé arriver à Toronto"), ('C', "Qu'est-ce qu'il fout ce maudit pancake, tabernacle ?"), ('D', 'La réponse D')] -
textText
No public methods.
-
nameChar
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…