HTML Editor
html_editor · odoo/odoo
Replaces
website_mail_snippet_bg_color via web_editor_background_color (9.0) · web_editor_background_color via web_editor (14.0) · pad via web_editor (16.0) · web_editor (19.0) Health
93/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by25/2511 modules depend on it
-
Maturity18/25In 3 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
11
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
10.74 MB
Module directory on disk
Code analysis
0 migration notes
22 models
0 views
17 HTTP endpoints
Description
Html Editor
This addon provides an extensible, maintainable editor.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- document_page, html_builder, mail, point_of_sale, portal, test_html_field_history, web_editor_media_dialog_dms, web_m2x_options, web_unsplash, website, website_profile
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 17
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/web_editor/attachment/add_data, /html_editor/attachment/add_data |
HTML_Editor.add_data |
user | jsonrpc | POST | website |
/web_editor/attachment/add_url, /html_editor/attachment/add_url |
HTML_Editor.add_url |
user | jsonrpc | POST | website |
/web_editor/bus_broadcast, /html_editor/bus_broadcast |
HTML_Editor.bus_broadcast |
user | jsonrpc | ALL | |
/web_editor/generate_text, /html_editor/generate_text |
HTML_Editor.generate_text |
user | jsonrpc | ALL | sudo |
/web_editor/get_ice_servers, /html_editor/get_ice_servers |
HTML_Editor.get_ice_servers |
user | jsonrpc | ALL | |
/web_editor/get_image_info, /html_editor/get_image_info |
HTML_Editor.get_image_info |
user | jsonrpc | ALL | sudo website |
/web_editor/google_translate, /html_editor/google_translate |
HTML_Editor.google_translate |
user | jsonrpc | ALL | sudo |
/html_editor/icons_search |
HTML_Editor.icons_search |
user | jsonrpc | ALL | |
/web_editor/image_shape/<string:img_key>/<module>/<path:filename>, /html_editor/image_shape/<string:img_key>/<module>/<path:filename> |
HTML_Editor.image_shape |
public | http | ALL | website |
/html_editor/image_shape_url/<module>/<path:filename> |
HTML_Editor.image_shape_url |
user | http | ALL | website |
/html_editor/link_preview_external |
HTML_Editor.link_preview_metadata |
public | jsonrpc | POST | |
/html_editor/link_preview_internal |
HTML_Editor.link_preview_metadata_internal |
user | jsonrpc | POST | sudo |
/html_editor/media_library_search |
HTML_Editor.media_library_search |
user | jsonrpc | ALL | sudo website |
/web_editor/modify_image/<model("ir.attachment"):attachment>, /html_editor/modify_image/<model("ir.attachment"):attachment> |
HTML_Editor.modify_image |
user | jsonrpc | ALL | sudo website |
/html_editor/attachment/remove |
HTML_Editor.remove |
user | jsonrpc | ALL | website |
/web_editor/save_library_media, /html_editor/save_library_media |
HTML_Editor.save_library_media |
user | jsonrpc | POST | sudo |
/web_editor/shape/<module>/<path:filename>, /html_editor/shape/<module>/<path:filename> |
HTML_Editor.shape |
public | http | ALL | sudo website |
Models touched 22
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
html_field_historyJsonprefetch=Falsereadonly=True 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 -
html_field_history_get_unified_diff_at_revision(self, field_name, revision_id)For the requested field, Get a unified diff 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 unified diff -
write(self, vals)
New fields (11)
-
binaryBinaryattachment=False -
charChar -
dateDate -
datetimeDatetime -
floatFloat -
htmlHtml -
integerInteger -
many2oneMany2one → html_editor.converter.test.subargs: 'html_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.
New fields (1)
-
nameChar
No public methods.
New fields (5)
-
image_heightIntegercompute='_compute_image_size' -
image_srcCharcompute='_compute_image_src' -
image_widthIntegercompute='_compute_image_size' -
local_urlCharcompute='_compute_local_url' args: 'Attachment URL' -
original_idMany2one → ir.attachmentindex='btree_not_null'ondelete='cascade'string='Original (unoptimized, unresized) attachment' args: 'ir.attachment'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (3)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model -
value_from_string(self, value)
New fields (0)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
get_record_to_html(self, contact_ids, options=None)@api.modelHelper to call the rendering of contact field.
New fields (0)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (3)-
from_html(self, model, field, element)@api.model -
load_local_url(self, url) -
load_remote_url(self, url)
New fields (0)
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (2)-
attributes(self, record, field_name, options, values=None)@api.model -
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (1)-
from_html(self, model, field, element)@api.model
New fields (0)
No new fields.
Public methods (1)-
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
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…