Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9a5e46c
fix: rename module to web_widget_text_markdown
Jan 2, 2015
0aa8fd9
fix: fixes small @typo, and put AGPL in __openerp__.py
Jan 2, 2015
754427a
fix: missing static/lib folder for obscur reason ...
Jan 3, 2015
0a2d469
fix: upadte web_widget_text_markdown.js with correct full version.
Jan 3, 2015
9616dfa
new: update css to have better rendering in read mode.
Jan 3, 2015
d3f6724
[IMP] web_widget_text_markdown: README.rst adapted to OCA template
pedrobaeza Jan 30, 2015
0d28009
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
1fc8c35
Add bug tracker link on README.rst
yvaucher May 22, 2015
2e915b9
Add missing default oca icons
yvaucher Aug 18, 2015
cee82a4
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
3d80bfa
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
f66a516
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
a6b4087
[FIX + ADD] fix markdown update condition on form view, add markdown …
Oct 30, 2015
c15f63d
OCA Transbot updated translations from Transifex
oca-transbot Nov 24, 2015
92260e7
[10.0][MIG] web_widget_text_markdown
Feb 27, 2018
328a5d3
[UPD] Update web_widget_text_markdown.pot
oca-travis Jun 24, 2018
3e80402
[FIX] web_widget_text_markdown : use lexer on text field only (#942)
Oct 2, 2018
8279202
[UPD] Update web_widget_text_markdown.pot
oca-travis Oct 2, 2018
9ec1742
Update translation files
oca-transbot Dec 6, 2018
f33d181
[MIG] web_widget_text_markdown: Migration to 11.0
Tardo Feb 9, 2019
9be856d
[UPD] Update web_widget_text_markdown.pot
oca-travis Feb 7, 2020
1a36d45
Update translation files
oca-transbot Mar 29, 2020
dc5404c
[UPD] black, isort, prettier
Jun 26, 2021
25c2a31
[MIG] migration to 13.0
Jun 26, 2021
0d2c511
[IMP] support for Html field markdown
KKamaa Jul 9, 2021
11775e9
[IMP] web_widget_text_markdown: black, isort, prettier
hkapatel-initos Jul 12, 2021
93a2678
[MIG] web_widget_text_markdown: Migration to 14.0
hkapatel-initos Jul 12, 2021
01b1385
[UPD] Update web_widget_text_markdown.pot
Aug 26, 2022
460359d
[UPD] README.rst
OCA-git-bot Aug 26, 2022
df7a095
[UPD] README.rst
OCA-git-bot Sep 3, 2023
1911004
Added translation using Weblate (Italian)
mymage Nov 29, 2024
55fbbcd
Translated using Weblate (Italian)
mymage Jan 16, 2025
da9c836
[FIX] web_widget_text_markdown: fix white-space
huguesdk Mar 8, 2023
8770420
[IMP] web_widget_text_markdown: pre-commit auto fixes
mathieudelva Dec 4, 2025
ed39bfd
[MIG] web_widget_text_markdown: Migration to 18.0
mathieudelva Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions web_widget_text_markdown/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
========================
Web Widget Text Markdown
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8cfeadbd9bda08238870f7e81c3fba7fbf3d61103e5adf5072ed03ebf51c0ee7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_widget_text_markdown
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_widget_text_markdown
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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 <https://github.com/toopay/bootstrap-markdown>`__

**Table of contents**

.. contents::
:local:

Usage
=====

Your XML form view definition should contain:

::

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

Known issues / Roadmap
======================

- Can't create attachments on virtual records
- Improve user experience with Odoo specific syntax
- Improve user experience with Github specific syntax

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_text_markdown%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Alexandre Díaz
* Komit
* Sudokeys
* Sunflower IT

Contributors
------------

- Nicolas Jeudy <nicolas@sudokeys.com>
- Nguyen Tan Phuc <phuc.nt@komit-consulting.com>
- Alexandre Díaz <dev@redneboa.es>
- Tom Blauwendraat <tom@sunflowerweb.nl>
- Kevin Kamau <kevin@sunflowerweb.nl>
- Helly kapatel <helly.kapatel@initos.com>

Other credits
-------------

- Komit https://komit-consulting.com

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_widget_text_markdown>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_widget_text_markdown/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
32 changes: 32 additions & 0 deletions web_widget_text_markdown/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (C) 2014 Sudokeys (<http://www.sudokeys.com>)
# Copyright (C) 2017 Komit (<http://www.komit-consulting.com>)
#
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Web Widget Text Markdown",
"version": "18.0.1.0.0",
"author": "Alexandre Díaz, "
"Komit, "
"Sudokeys, "
"Sunflower IT, "
"Odoo Community Association (OCA)",
"category": "Web",
"license": "AGPL-3",
"website": "https://github.com/OCA/web",
"summary": "Widget to text fields that adds markdown support",
"depends": ["web"],
"assets": {
"web.assets_backend": [
"web_widget_text_markdown/static/src/js/web_widget_text_markdown.js",
],
"web.qunit_suite_tests": [
"web_widget_text_markdown/static/tests/js/web_widget_text_markdown.js",
],
},
"demo": ["demo/bootstrap_markdown.xml"],
"data": [],
"qweb": ["static/src/xml/bootstrap_markdown.xml"],
"installable": True,
"auto_install": False,
"application": False,
}
12 changes: 12 additions & 0 deletions web_widget_text_markdown/demo/bootstrap_markdown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_groups_form_inherited" model="ir.ui.view">
<field name="model">res.groups</field>
<field name="inherit_id" ref="base.view_groups_form" />
<field name="arch" type="xml">
<field name="comment" position="attributes">
<attribute name="widget">bootstrap_markdown</attribute>
</field>
</field>
</record>
</odoo>
24 changes: 24 additions & 0 deletions web_widget_text_markdown/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_text_markdown
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-01-16 15:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: web_widget_text_markdown
#. openerp-web
#: code:addons/web_widget_text_markdown/static/src/js/web_widget_text_markdown.js:0
#, python-format
msgid "Translate"
msgstr "Traduci"
21 changes: 21 additions & 0 deletions web_widget_text_markdown/i18n/web_widget_text_markdown.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_text_markdown
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_widget_text_markdown
#. openerp-web
#: code:addons/web_widget_text_markdown/static/src/js/web_widget_text_markdown.js:0
#, python-format
msgid "Translate"
msgstr ""
3 changes: 3 additions & 0 deletions web_widget_text_markdown/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions web_widget_text_markdown/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Nicolas Jeudy \<nicolas@sudokeys.com\>
- Nguyen Tan Phuc \<phuc.nt@komit-consulting.com\>
- Alexandre Díaz \<dev@redneboa.es\>
- Tom Blauwendraat \<tom@sunflowerweb.nl\>
- Kevin Kamau \<kevin@sunflowerweb.nl\>
- Helly kapatel \<helly.kapatel@initos.com\>
1 change: 1 addition & 0 deletions web_widget_text_markdown/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Komit <https://komit-consulting.com>
8 changes: 8 additions & 0 deletions web_widget_text_markdown/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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](https://github.com/toopay/bootstrap-markdown)
3 changes: 3 additions & 0 deletions web_widget_text_markdown/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Can't create attachments on virtual records
- Improve user experience with Odoo specific syntax
- Improve user experience with Github specific syntax
5 changes: 5 additions & 0 deletions web_widget_text_markdown/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Your XML form view definition should contain:

...
<field name="field_name" widget="bootstrap_markdown"/>
...
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading