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
pull/1287/head
Pedro M. Baeza 2019-05-05 10:13:47 +02:00 committed by GitHub
commit 880df8eb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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(