Search 1.9 billion lines of Odoo code on GitHub

app_web_widget_color

Author: Sunpop.cn
License: AGPL-3
Branch: 11.0
Repository: 001101/app-odoo
Dependencies: base, and web
Languages: HTML (215, 11.8%), JavaScript (1401, 76.9%), LESS (13, 0.7%), Python (24, 1.3%), XML (30, 1.6%), and reStructuredText (138, 7.6%)
Other repositories: 3DOeste/app-odoo, Aaronpan126/app-odoo, AbrahamMatu/app-odoo, ChinaShrimp/app-odoo, Datacabbage/app-odoo, Deanzou/app-odoo, Emadbox/app-odoo, FullBringEc/app-odoo, Hello-Sistem/app-odoo, HelloXMFJ/app-odoo, JoyPoint/app-odoo, MALANGBEIJING/app-odoo, MathBenTech/app-odoo, RL-OtherApps/app-odoo, RigelRan/app-odoo, abdo3247/app-odoo, abdulrhmans/app-odoo, abhijitmamarde/app-odoo, alangwansui/app-odoo, app2io/app-odoo, arthurshoe/app-odoo, bopo/app-odoo, bunhin/app-odoo, chenrobotcat/app-odoo, chunjiekuaile/app-odoo, davidnguyen2205/app-odoo, davkas/app-odoo, detian08/app-odoo, dmxd/app-odoo, dongshukai/app-odoo, duyisu/app-odoo, eillel/app-odoo_sunpop.cn, eqms/app-odoo, eribowo/app-odoo, fengyunsen/app-odoo, fwl998877/app-odoo, gfcapalbo/app-odoo, guohuadeng/app-odoo, guotianwu/app-odoo, gustotc/app-odoo, habbaba/app-odoo, haroldtamo/app-odoo, hassanfadl/app-odoo, hemantsurariya/app-odoo, hjrhjr/app-odoo, huntergps/app-odoo, hzh0292/app-odoo, hzwzw/app-odoo, iSqXIE/app-odoo, izzihector/app-odoo, jackini/app-odoo, jackxusho/app-odoo, jason156/app-odoo, jlxxlj/app-odoo, joytao-zhu/app-odoo, jsrhtc/app-odoo, keepcleargas/app-odoo, kevin070982/app-odoo, kingctan/app-odoo, kit9/app-odoo, kossovo/app-odoo, kriswang10/app-odoo, kurdi999/app-odoo, kwchoi70/app-odoo, leodoooca/app-odoo, lewis2000/app-odoo, lhslll/app-odoo, linsoner/app-odoo, lisidan/app-odoo, lit1088/app-odoo, lonelyleaves/app-odoo, lonlier/app-odoo, ltnil/app-odoo, luence/app-odoo, lukehuang/app-odoo, maboubia/app-odoo, marcelsavegnago/app-odoo, maxgreen/app-odoo, mayang1178/app-odoo, molandtoxx/app-odoo, mom988/app-odoo, muguli22/app-odoo, niulinlnc/app-odoo, odoo-modules/app-odoo, odoo247/app-odoo, plage83/app-odoo, pmarabe/app-odoo, putao615/app-odoo, pythoner-3k/app-odoo, qingaa1111/app-odoo, raouf-haddada/app-odoo, rizwan92/app-odoo, roc198/app-odoo, roniap/app-odoo, royalline1/app-odoo, rr10/app-odoo, rudisulistyo/app-odoo, sahil-navadiya/app-odoo, sc4you/app-odoo, shm10/app-odoo, shyrock/app-odoo, suningwz/app-odoo, taliu/app-odoo, trionoharjadi/app-odoo, ubltroll/app-odoo, varcharli/app-odoo, vertelab/app-odoo, vidtsin/app-odoo, vkuldeep/app-odoo, wahello/app-odoo, watercolorz/app-odoo, wuhuizhong/app-odoo, wusj521/app-odoo, xiaolu168/app-odoo, xiaonibakeji/app-odoo, yaahlq/app-odoo, yacine2/app-odoo, yangxunbo/app-odoo, yasmanycastillo/app-odoo, yf956613/app-odoo, ygqbasic/app-odoo, zchking/app-odoo, zhaohengzeng/app-odoo, zhaohuaw/app-odoo, zhbittt/app-odoo, zhuyoucai168/app-odoo, and zizizak/app-odoo

<h1 class="title">Web Widget Color</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" 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.png" /></a> <a class="reference external" href="https://github.com/OCA/web/tree/11.0/app_web_widget_color"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/web-11-0/web-11-0-app_web_widget_color"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/162/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module aims to add a color picker to Odoo.</p> <p>It's a <a class="reference external" href="http://jscolor.com/">jsColor</a> lib integration.</p> <a name="features"></a> <h2>Features</h2> <ul> <li><p class="first">The picker allow the user to quickly select a color on edit mode</p> <p><img alt="picker" src="./images/picker.png" /></p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Notice how html code and the background color is updating when selecting a color.</p> </div> </li> <li><p class="first">Display the color on form view when you are not editing it</p> <p><img alt="formview" src="./images/form_view.png" /></p> </li> <li><p class="first">Display the color on list view to quickly find what's wrong!</p> <p><img alt="listview" src="./images/list_view.png" /></p> </li> </ul> <p><strong>Table of contents</strong></p> <a name="usage"></a> <h2>Usage</h2> <p>You need to declare a char field:</p> <pre> <code>color = fields.Char( string=&quot;Color&quot;, help=&quot;Choose your color&quot; )</code> </pre> <p>In the view declaration, put widget='color' attribute in the field tag:</p> <pre> <code>... &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;tree string=&quot;View name&quot;&gt; ... &lt;field name=&quot;color&quot; widget=&quot;color&quot;/&gt; ... &lt;/tree&gt; &lt;/field&gt; ... &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;form string=&quot;View name&quot;&gt; ... &lt;field name=&quot;color&quot; widget=&quot;color&quot;/&gt; ... &lt;/form&gt; &lt;/field&gt; ...</code> </pre> <p>Widget Options:</p> <pre> <code>- readonly_mode - 'default' &gt; Color Box + text - 'color' &gt; Only Color Box - 'text' &gt; Only Text ... &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;tree string=&quot;View name&quot;&gt; ... &lt;field name=&quot;color&quot; widget=&quot;color&quot; options=&quot;{'readonly_mode': 'color'}&quot;/&gt; ... &lt;/tree&gt; &lt;/field&gt; ...</code> </pre> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/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 <a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20app_web_widget_color%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2>Credits</h2> <a name="authors"></a> <h3>Authors</h3> <ul class="simple"> <li>Savoir-faire Linux</li> <li>Anybox</li> <li>Taktik SA</li> <li>Sudokeys</li> </ul> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Adil Houmadi &lt;<a class="reference external" href="mailto:adil.houmadi&#64;gmail.com">adil.houmadi&#64;gmail.com</a>&gt;</li> <li>Enric Tobella &lt;<a class="reference external" href="mailto:etobella&#64;creublanca.es">etobella&#64;creublanca.es</a>&gt;</li> <li>Nicolas JEUDY (Sudokeys) &lt;<a class="reference external" href="https://www.github.com/njeudy">https://www.github.com/njeudy</a>&gt;</li> <li>Alexandre Díaz &lt;<a class="reference external" href="mailto:dev&#64;redneboa.es">dev&#64;redneboa.es</a>&gt;</li> </ul> <a name="maintainers"></a> <h3>Maintainers</h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/11.0/app_web_widget_color">OCA/web</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>