Author: |
GRAP, Tecnativa, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
15.0 |
Repository: |
AITIC/web |
Dependencies: |
web |
Languages: |
HTML (376, 45.5%),
JavaScript (197, 23.8%),
PO File (88, 10.7%),
Python (21, 2.5%),
Sass (9, 1.1%),
XML (53, 6.4%),
and
reStructuredText (82, 9.9%) |
Other branches: |
12.0,
12.0-ocabot-merge-pr-1613-by-legalsylvain-bump-patch,
13.0,
13.0_sh,
and
14.0 |
Other repositories: |
001101/web-1,
965714601/web-1,
Abdulrahman3282/web,
AntoniRomera/web,
AyoubZahid/web,
BADEP/web,
BS-creator/web,
Bochelly/web,
CB-Gran-Canaria/web,
ChanFeei/web,
Change2improve/web,
ClancyQiao/web,
Cy-Ghost/web,
Darknroses/web,
Decikingship/web,
Digital5-Odoo/web,
Dobtor-OCA/web,
ELMARDI0107/web,
ERPLibre/web,
Ecnart/web,
ForgeFlow/web,
GSLabIt/web,
Gabinete-Digital/web,
GlodoUK/oca-web,
HirenDangar/web,
Ingeos/web,
Jarsa/web,
JohnmarkEnriquez/web,
KENLYLST/web,
KKamaa/web,
KonaERP/web,
LevelPrime/web,
Martronic-SA/web,
MaxyMoos/web,
MihranThalhath/web,
MindAndGo/web,
NL66278/web,
NeatNerdPrime/web,
Netsoro/web,
NextERP-Romania/web,
Nowheresly/web,
OCA-MUK/web,
OCA/web,
Paul98isep/web,
SanteLibre/web,
SequarSrl/web,
SeuMarco/web,
SimoRubi/web,
SirumTME/web,
StefanRijnhart/web,
Studio73/web,
Syci-Consulting/web,
TRESCLOUD/web,
Tecnativa/web,
VanMoof/web,
Vauxoo/web,
WilldooIT/web,
aaltinisik/web,
acsone/web,
agrista/odoo-web,
ahmedgenina/web,
akloptim/web,
akretion/web,
alan80080/web,
androettop/web,
anhvu-sg/web,
ansinaesmejor/web,
antilhue/web,
arkyalpyae/web,
asphaltzipper/web,
aurestic/web,
bizzappdev/web,
blooparksystems/web,
bmya/web,
boskowski/web,
brain-tec/web,
brian10048/web,
bud-e/web,
camptocamp/web,
cenit-io/odoo-cenit,
conandark/web,
coopiteasy/web,
diggy128/web,
dingguijin/web,
druidoo-dev/web,
dvalladares66/web,
dynapps/web,
eLBati/web,
ecosoft-odoo/web,
ehsu0407/web,
enmasys/web,
essamcis/web,
evansadji/web,
factorlibre/web,
fallewi/web,
farinoire/web,
fjouatte/web,
focusate/web-oca,
foramaktiv/web,
gab-net/web,
gastonfeng/web,
gfcapalbo/web,
grindtildeath/web,
gtorresemmanuel/web,
hbrunn/web,
i-vyshnevska/web,
ibudgie/web,
ideaspositivas-group/web,
ilecyang/web,
initOS/web,
insscn/web,
jacky82669513/web,
jans23/web,
janverb/web,
jchanme/web,
jeroen7s/web,
jguerriat/web,
jhonaelramos/web,
khanvuthy88/web,
kkasing11/web,
kmee/web,
kos94ok-3D/web,
leanhtuan1996/web,
legalsylvain/web,
lideritjnma/web,
lilotter45/web,
lincoln6delta/web,
liunux4odoo/web,
lubw/web,
luisrodriguez-e2e/web,
mashanz/web,
mhadi12/web,
mharenz/web,
mingkongz/web,
mochammadrizanaufal/web,
modoolar/oca-web,
mohamedhagag/web,
multidadosti-erp/web,
newtratip/web,
noorealam96/web,
onurugur/web,
onyanga/web,
orlandosorio/web,
paraita/web,
pegonzalezspesol/web,
petrus-v/web,
phuctranerp/web,
pnajman-modoolar/web-1,
popsolutions/web,
praxigento/oca-web,
presenceverte/web,
qgzhiguo/web,
quentinDupont/web,
quentingigon/web,
raizs/web,
ristecona/web,
robertsvx27/web,
rven/web,
sahil-navadiya/web,
samsagaz/web,
sanube/web,
scottliu/web,
sergiocorato/web,
sewisoft/web,
sgheller/web,
sodexis/web,
solvosci/web,
steingabelgaard/web,
stuti135/web,
sudhir-erpharbor/web,
sunflowerit/web,
syci/web,
szellmark20/web,
takinobori/oca-web,
tarteo/web,
tegin/web,
tirix/web,
tirma-sa/web,
tpa-odoo/web,
trevi-software/web,
trionoharjadi/web,
trobz/web,
tvtma/web,
unitek-solusi/OCA-web,
ursais/web,
vasiljevicmarko/web,
versada/web,
vertelab/web,
vialaurea/OCA-web,
vnsofthe/web,
wahello/oca-web,
waveFuncjs/web,
xcgd/web,
xiaoyi-yanqing/web,
xtjie/web,
zarumaru/web,
zcyuefan/web,
and
zeroheure/web |
<h1 class="title">Web Widget Numeric Step</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/15.0/web_widget_numeric_step"><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-15-0/web-15-0-web_widget_numeric_step"><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/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This widget changes input number field and make it easier to increment the number thanks to 2 buttons (+ and -).
Use JS native logic for input number, so you can use the options <code>min</code>, <code>max</code>, <code>step</code>, <code>placeholder</code>.</p>
<p>Demo available at <cite>Settings > Users & Companies > Users > *Select One* > See 'Credit Limit' field</cite></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="numeric_step"</code>
This will add the 2 buttons "+" and "-" 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/OCA/web/15.0/web_widget_numeric_step/static/description/add_two_buttons.png" src="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_numeric_step/static/description/add_two_buttons.png" />
</div>
<p><strong>Optional</strong></p>
<p>Add an option to choose the step iteration and limits (min and max values).</p>
<p>Example for an 0.25 step, min to -1 and max to 10 :</p>
<pre>
<code lang="xml"><field name="sale_delay" widget="numeric_step" options="{'step': 0.25, 'min': -1, 'max': 10}" /> days</code>
</pre>
<p><strong>Available Options</strong></p>
<ul class="simple">
<li>step > Amount to increase/decrease (default: 1.0)</li>
<li>min > Min. value allowed (default: no limit)</li>
<li>max > Max. value allowed (default: no limit)</li>
<li>auto_select > Select the content when the element get focus (default: False)</li>
<li>placeholder > Define the placeholder text (default: None)</li>
</ul>
<p><strong>Examples</strong></p>
<p>Iteration with 0.25 step, min to -1 and max to 10.</p>
<p>Start to increment with button, continue incrementing with scrolling mouse.</p>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_numeric_step/static/description/step0,25andlimits.gif" src="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_numeric_step/static/description/step0,25andlimits.gif" />
</div>
<p>Iteration with 10 step, max limit 15, placeholder with onchange</p>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_numeric_step/static/description/step10_limit15_placeholder117_with_onchange.gif" src="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_numeric_step/static/description/step10_limit15_placeholder117_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/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_numeric_step%0Aversion:%2015.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>GRAP</li>
<li>Tecnativa</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 <<a class="reference external" href="mailto:quentin.dupont@grap.coop">quentin.dupont@grap.coop</a>></li>
</ul>
</li>
<li><a class="reference external" href="https://www.tecnativa.com/">Tecnativa</a>:<ul>
<li>Alexandre Díaz</li>
<li>Carlos Roca</li>
</ul>
</li>
<li>Helly kapatel <<a class="reference external" href="mailto:helly.kapatel@initos.com">helly.kapatel@initos.com</a>></li>
<li>Thanakrit Pintana <<a class="reference external" href="mailto:thanakrit.p39@gmail.com">thanakrit.p39@gmail.com</a>></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/15.0/web_widget_numeric_step">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>