Browse Source

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/851/merge
Pedro M. Baeza 5 years ago
committed by GitHub
parent
commit
880df8eb7b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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