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="Color Picker",</dd>
</dl>
<p>)</p>
</blockquote>
<p>In the view declaration,</p>
<blockquote>
<p>...
<field name="arch" type="xml"></p>
<blockquote>
<dl class="docutils">
<dt><form string="View name"></dt>
<dd>...
<field name="colorpicker" widget="colorpicker"/>
...</dd>
</dl>
<p></form></p>
</blockquote>
<p></field>
...</p>
</blockquote>