Browse Source

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

pull/1276/head
Tomas Alvarez 6 years ago
parent
commit
99d07f7395
  1. 2
      web_widget_text_markdown/static/src/js/web_widget_text_markdown.js

2
web_widget_text_markdown/static/src/js/web_widget_text_markdown.js

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

Loading…
Cancel
Save