mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Merge pull request #1276 from vauxoo-dev/10.0-widget_markdown_tree_fix-tomeyro
[10.0] [FIX] web_widget_text_markdown: convert markdown only when widget attr is present in tree view
This commit is contained in:
@@ -121,7 +121,7 @@ odoo.define("web_widget_text_markdown.bootstrap_markdown",
|
||||
},
|
||||
|
||||
_format: function(row_data, options) {
|
||||
if (this.type === "text") {
|
||||
if (this.type === "text" && this.widget === "bootstrap_markdown") {
|
||||
options = options || {};
|
||||
var markdown_text = marked(
|
||||
formats.format_value(
|
||||
|
||||
Reference in New Issue
Block a user