Skip to content
Health
93/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by25/25
    11 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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
odoo/odoo:
- bus
- web
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)HandlerAuthTypeMethodsFlags
/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_history Json
    prefetch=False readonly=True args: 'History data'
  • html_field_history_metadata Json
    compute='_compute_metadata' args: 'History metadata'
Public methods (5)
  • 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)
  • binary Binary
    attachment=False
  • char Char
  • date Date
  • datetime Datetime
  • float Float
  • html Html
  • integer Integer
  • many2one Many2one → html_editor.converter.test.sub
    args: 'html_editor.converter.test.sub'
  • numeric Float
    digits=(16, 2)
  • selection_str Selection
    string="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')]
  • text Text
Public methods (0)

No public methods.

New fields (1)
  • name Char
Public methods (0)

No public methods.

New fields (5)
  • image_height Integer
    compute='_compute_image_size'
  • image_src Char
    compute='_compute_image_src'
  • image_width Integer
    compute='_compute_image_size'
  • local_url Char
    compute='_compute_local_url' args: 'Attachment URL'
  • original_id Many2one → ir.attachment
    index='btree_not_null' ondelete='cascade' string='Original (unoptimized, unresized) attachment' args: 'ir.attachment'
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 (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.model
    Helper 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.model
    Get 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…