Search 1.9 billion lines of Odoo code on GitHub

web_calendar_color_field

Author: Iván Todorovich, Odoo Community Association (OCA)
License: AGPL-3
Branch: 14.0
Repository: acsone/web
Dependencies: web
Languages: HTML (350, 72.5%), JavaScript (44, 9.1%), PO File (11, 2.3%), Python (14, 2.9%), XML (11, 2.3%), and reStructuredText (53, 11.0%)
Other branches: 14.0-abi_master, and 14.0-x2many_2d_matrix-sbj
Other repositories: AITIC/web, AntoniRomera/web, Change2improve/web, Darknroses/web, Digital5-Odoo/web, ForgeFlow/web, GSLabIt/web, Ingeos/web, KKamaa/web, LevelPrime/web, OCA/web, StefanRijnhart/web, TRESCLOUD/web, Tecnativa/web, Vauxoo/web, agrista/odoo-web, akretion/web, aurestic/web, blooparksystems/web, bmya/web, brain-tec/web, brian10048/web, camptocamp/web, coopiteasy/web, dingguijin/web, ecosoft-odoo/web, gastonfeng/web, gfcapalbo/web, initOS/web, kmee/web, leanhtuan1996/web, legalsylvain/web, modoolar/oca-web, mohamedhagag/web, onurugur/web, sodexis/web, sunflowerit/web, tegin/web, trevi-software/web, ursais/web, versada/web, and vialaurea/OCA-web

<h1 class="title">Calendar Color Field</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/14.0/web_calendar_color_field"><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-14-0/web-14-0-web_calendar_color_field"><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/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This is a technical module. It doesn't do anything on its own.</p> <p>Odoo introduced a mechanism to set the desired color for a calendar filter, through the field's <cite>color</cite> attribute.</p> <p>Unfortunately, this only works for filters, but not if we want to use the calendar's <cite>color</cite> attribute.</p> <p>This module makes the appropiate changes so that the filter's color is used, if available.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>Set a color attribute value on any many2one calendar field set as filter and set the calendar's color attribute to use the same many2one field.</p> <p>Example:</p> <pre> <code lang="xml">&lt;calendar color=&quot;category_id&quot;&gt; &lt;field name=&quot;category_id&quot; filter=&quot;1&quot; color=&quot;kanban_color&quot;/&gt; &lt;/calendar&gt;</code> </pre> <ul class="simple"> <li><cite>category_id</cite> is a <cite>Many2one</cite> field in your record.</li> <li><cite>kanban_color</cite> is an integer field in your category record.</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></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:%20web_calendar_color_field%0Aversion:%2014.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><a class="toc-backref" href="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>Iván Todorovich</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;gmail.com">ivan.todorovich&#64;gmail.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">Maintainers</a></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/14.0/web_calendar_color_field">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>