Search 1.9 billion lines of Odoo code on GitHub

web_widget_statusbar_visible_from_record

Author: Opener B.V.,Odoo Community Association (OCA)
License: AGPL-3
Branch: add/14.0/web_widget_statusbar_visible_from_record
Repository: brain-tec/web
Dependencies: web
Languages: HTML (349, 75.5%), JavaScript (23, 5.0%), Python (10, 2.2%), XML (15, 3.2%), and reStructuredText (65, 14.1%)
Other repositories: StefanRijnhart/web, dingguijin/web, and modoolar/oca-web

<h1 class="title">Statusbar widget: get visible states from record</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_widget_statusbar_visible_from_record"><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_widget_statusbar_visible_from_record"><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 technical module allows you as a developer to determine which states are visible in the statusbar widget per record per field.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</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="#other-credits" id="id5">Other credits</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>Having a model with a field <cite>stage_id</cite> that is displayed with <cite>widget=&quot;statusbar&quot;</cite>, with this module installed you can add a <cite>Char</cite> field <cite>stage_id_visible_states</cite> that you can populate with a comma-separated list of states that you want to make visible for each record on its form view.</p> <p>If your state field is of type <cite>Many2one</cite>, the contents of your visible states field needs to be a comma-separated list of numeric ids.</p> <p>The visible states field needs to be present in the form view, but it can be invisible.</p> <p>The current state of the record is always visible, even if it is not in the list of visible states for your record.</p> <p>If the visible states field is not populated, all states will be visible.</p> <p>Odoo provides a <cite>visible_states</cite> attribute on the widget level itself. It can be used to globally filter out states that should be visible. When both mechanisms are active, a state has to be present in both lists to be visible.</p> <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_widget_statusbar_visible_from_record%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>Opener B.V.</li> </ul> <a name="other-credits"></a> <h3><a class="toc-backref" href="#id5">Other credits</a></h3> <p>The development of this module has been made possible by:</p> <ul class="simple"> <li>Talpa eCommerce</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_widget_statusbar_visible_from_record">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>