OdooWiki OCA HUB

Web Widget Text Markdown

web_widget_text_markdown folder_open OCA/web open_in_new
Web License: AGPL-3

This module adds a new widget for text field in form view on Odoo:

  • In readonly mode, it uses text contents to parse and render them to html markdown syntax.
  • In write mode, use [bootstrap-markdown][1]

[1]: bootstrap-markdown

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds a Markdown editor and preview widget for text fields in Odoo forms, so users can write text with Markdown syntax and see it rendered as formatted HTML.

This module registers a new field widget called bootstrap_markdown that can be applied to text fields in Odoo form views. When a field uses this widget, users get a Markdown editing toolbar while writing, and the content is displayed as formatted HTML when the field is read-only.

The widget is built on the standard text field and adds a Markdown editor with a preview option. The preview converts the Markdown text into HTML, supporting tables, footnotes, a table of contents, emoji, strikethrough, task lists, and GitHub-style code blocks and mentions. Links open in a new window and email addresses are encoded.

If the database is multi-language and the field is translatable, an extra Translate button appears in the editor toolbar, letting users translate the field content.

The module includes a demo view that applies the widget to the comment field of res.groups, showing how it can be used. It does not add new menus or models; it only extends the web client's field rendering and editing behaviour for text fields.

Depends on

web

Required by other modules

Text generated by AI (DeepSeek) from reading the Odoo 15.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 15.0

Your XML form view definition should contain:

...
<field name="field_name" widget="bootstrap_markdown"/>
...

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.