mirror of https://github.com/OCA/web.git
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 viewpull/1287/head
commit
880df8eb7b
|
@ -121,7 +121,7 @@ odoo.define("web_widget_text_markdown.bootstrap_markdown",
|
||||||
},
|
},
|
||||||
|
|
||||||
_format: function(row_data, options) {
|
_format: function(row_data, options) {
|
||||||
if (this.type === "text") {
|
if (this.type === "text" && this.widget === "bootstrap_markdown") {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var markdown_text = marked(
|
var markdown_text = marked(
|
||||||
formats.format_value(
|
formats.format_value(
|
||||||
|
|
Loading…
Reference in New Issue