Search 1.9 billion lines of Odoo code on GitHub

web_html_field_tree_view

Author: Robert J Sullivan
License: AGPL-3
Branch: 10.0
Repository: rsullivan2704/web
Dependencies: web
Languages: JavaScript (13, 28.3%), Python (22, 47.8%), and XML (11, 23.9%)

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="html-field-in-tree-view"></a> <h2>HTML Field in Tree View</h2> <p>Column extension to properly display html data in a tree view.</p> <p>This module was adapted from the code found <a class="reference external" href="https://stackoverflow.com/questions/45102334/display-html-in-tree-view-odoo">here</a>.</p> <a name="installation"></a> <h3>Installation</h3> <p>To install this module, you need to:</p> <ul class="simple"> <li>Go to Apps</li> <li>Search by the module name &quot;HTML Field in Tree View&quot; or by the module technical name &quot;<em>web_html_field_tree_view</em>&quot;</li> <li>Click install button</li> </ul> <a name="usage"></a> <h3>Usage</h3> <p>This module adds a new field type (formattedhtml) to Odoo. Any field defined using this type will render its html value as formatted html in a list/tree view.</p> <p>When using <em>formattedhtml</em> in a field definition (within another module) the model should include the following import statement:</p> <ul class="simple"> <li><strong>from odoo.addons import web_html_field_tree_view</strong></li> </ul> <a name="known-issues"></a> <h3>Known issues</h3> <ul class="simple"> <li>Fields defined as <em>formattedhtml</em> will throw an error when viewing them in a form view (see <a class="reference external" href="https://github.com/rsullivan2704/web/issues/6">here</a>). The workaround is to add <strong>widget=&quot;html&quot;</strong> to the field definition in the form view.</li> </ul> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/rsullivan2704/web/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Robert J Sullivan</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <p>This module is maintained by Robert J Sullivan</p>