mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[11.0][MIG] web_widget_timepicker
This commit is contained in:
committed by
David Alonso
parent
f679cb371b
commit
51c3d56b4a
3
web_widget_timepicker/readme/CONTRIBUTORS.rst
Normal file
3
web_widget_timepicker/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,3 @@
|
||||
* Michael Fried <Michael.Fried@vividlab.de>
|
||||
* Kaushal Prajapati <kbprajapati@live.com>
|
||||
* Alexandre Díaz <dev@redneboa.es>
|
||||
3
web_widget_timepicker/readme/CREDITS.rst
Normal file
3
web_widget_timepicker/readme/CREDITS.rst
Normal file
@@ -0,0 +1,3 @@
|
||||
* The module uses the `datetime-picker <https://eonasdan.github.io/bootstrap-datetimepicker/Options/>`_. plugin by Jonathan Peterson. This software is made available under the open source MIT License. Copyright (c) 2015 Jonathan Peterson
|
||||
|
||||
* Odoo Community Association (OCA)
|
||||
2
web_widget_timepicker/readme/DESCRIPTION.rst
Normal file
2
web_widget_timepicker/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
This module provides a timepicker widget for float fields.
|
||||
It can be used as a replacement for the standard float_time widget in form views.
|
||||
20
web_widget_timepicker/readme/USAGE.rst
Normal file
20
web_widget_timepicker/readme/USAGE.rst
Normal file
@@ -0,0 +1,20 @@
|
||||
In the form view declaration, put widget='timepicker' attribute in the field tag::
|
||||
|
||||
...
|
||||
<field name="arch" type="xml">
|
||||
<form string="View name">
|
||||
...
|
||||
<field name="name"/>
|
||||
<field name="mytimefieldname" widget="timepicker"/>
|
||||
...
|
||||
</form>
|
||||
</field>
|
||||
...
|
||||
|
||||
Additional bootstrap datetime-picker plugin options can be specified by an options attribute::
|
||||
|
||||
...
|
||||
<field name="mytimefieldname" widget="timepicker" options="{'datepicker': {'stepping': 15}}"/>
|
||||
...
|
||||
|
||||
See the available options at `datetime-picker <https://eonasdan.github.io/bootstrap-datetimepicker/Options/>`_.
|
||||
Reference in New Issue
Block a user