Search 1.9 billion lines of Odoo code on GitHub

web_widget_number_ux_choice

Author: GRAP, Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0_ADD_web_widget_int_choice
Repository: quentinDupont/grap-odoo-incubator
Dependencies: web
Languages: HTML (351, 68.0%), JavaScript (44, 8.5%), PO File (18, 3.5%), Python (18, 3.5%), Sass (9, 1.7%), XML (23, 4.5%), and reStructuredText (53, 10.3%)

<h1 class="title">Web Widget UX Number Choice</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/quentinDupont/grap-odoo-incubator/tree/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice"><img alt="quentinDupont/grap-odoo-incubator" src="https://img.shields.io/badge/github-quentinDupont%2Fgrap--odoo--incubator-lightgray.png?logo=github" /></a></p> <p>This widget changes input number field and make it easier to incremente the number thanks to 2 buttons (+ and -). We can be parametred to choose the iteration step (0.1 for more precision etc.)</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>In your xml view, add <code>widget=&quot;number_ux_choice&quot;</code> This will add the 2 buttons +&quot; and &quot;-&quot; just next to the input field in edit mode. Iteration step by default is 1.</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/quentinDupont/grap-odoo-incubator/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice/static/description/add_two_buttons.png" src="https://raw.githubusercontent.com/quentinDupont/grap-odoo-incubator/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice/static/description/add_two_buttons.png" /> </div> <p><strong>Optional</strong> Add an option to choose the step iteration Example for an 0.1 step :</p> <p><code>&lt;field name=&quot;sale_delay&quot; widget=&quot;number_ux_choice&quot; options=&quot;{'step': 0.1}&quot; /&gt; days</code></p> <p><strong>Examples</strong></p> <p>Iteration with 0.1 step</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/quentinDupont/grap-odoo-incubator/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice/static/description/step0,1.gif" src="https://raw.githubusercontent.com/quentinDupont/grap-odoo-incubator/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice/static/description/step0,1.gif" /> </div> <p>Iteration with 10 step, with onchange</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/quentinDupont/grap-odoo-incubator/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice/static/description/step10_with_onchange.gif" src="https://raw.githubusercontent.com/quentinDupont/grap-odoo-incubator/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice/static/description/step10_with_onchange.gif" /> </div> <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/quentinDupont/grap-odoo-incubator/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/quentinDupont/grap-odoo-incubator/issues/new?body=module:%20web_widget_number_ux_choice%0Aversion:%2012.0_ADD_web_widget_int_choice%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>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li><a class="reference external" href="http://www.grap.coop">GRAP</a>:<ul> <li>Quentin DUPONT &lt;<a class="reference external" href="mailto:quentin.dupont&#64;grap.coop">quentin.dupont&#64;grap.coop</a>&gt;</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">Maintainers</a></h3> <p>This module is part of the <a class="reference external" href="https://github.com/quentinDupont/grap-odoo-incubator/tree/12.0_ADD_web_widget_int_choice/web_widget_number_ux_choice">quentinDupont/grap-odoo-incubator</a> project on GitHub.</p> <p>You are welcome to contribute.</p>