Search 1.9 billion lines of Odoo code on GitHub

web_widget_colorpicker

Author: Viktor Vorobjov
License: LGPL-3
Branch: 1.0
Repository: DamithDDS/cybererp
Dependencies: web
Languages: CSS (248, 15.5%), HTML (66, 4.1%), JavaScript (1195, 74.9%), Python (31, 1.9%), XML (30, 1.9%), and reStructuredText (25, 1.6%)
Other branches: 2.0, 2.1, master, patch-1, and patch-2
Other repositories: cybergate-services/cybererp, loftwah/cybererp, openemail/cybererp, suningwz/cybererp, tate11/cybererp, and vidtsin/cybererp

<a name="color-picker-widget-for-odoo-web-client"></a> <h2>Color Picker widget for Odoo web client</h2> <a name="features"></a> <h2>Features</h2> <p>Now only in RGBA code.</p> <ul> <li><p class="first">Display the color on form view when you are not editing it</p> <p><a href="#id1"><span class="problematic" id="id2">|form_view_no_edit|</span></a></p> </li> <li><p class="first">Display the color on form view when you editing it</p> <p><a href="#id3"><span class="problematic" id="id4">|form_view_edit|</span></a></p> </li> </ul> <a name="usage"></a> <h2>Usage</h2> <p>You need to declare a char.</p> <blockquote> <dl class="docutils"> <dt>colorpicker = fields.Char(</dt> <dd>string=&quot;Color Picker&quot;,</dd> </dl> <p>)</p> </blockquote> <p>In the view declaration,</p> <blockquote> <p>... &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt;</p> <blockquote> <dl class="docutils"> <dt>&lt;form string=&quot;View name&quot;&gt;</dt> <dd>... &lt;field name=&quot;colorpicker&quot; widget=&quot;colorpicker&quot;/&gt; ...</dd> </dl> <p>&lt;/form&gt;</p> </blockquote> <p>&lt;/field&gt; ...</p> </blockquote>