[FIX] web_widget_text_markdown: convert markdown only when widget attr is present in tree view

This commit is contained in:
Tomas Alvarez
2019-05-04 15:52:15 -05:00
parent 7016cd20b4
commit 99d07f7395

View File

@@ -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(