Web Timepicker Widget
Project description
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
===============================
Timepicker widget in form views
===============================
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.
|picker|
The widget has the following default timepicker options:
* the possible selection is based on 15 minute interval (step: 15)
* 24 hour mode in H:i format (timeFormat: 'H:i')
* scroll selection starts at current time (scrollDefault: 'now')
|formview|
Usage
=====
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 jquery-timepicker plugin options can be specified by an options attribute::
...
<field name="mytimefieldname" widget="timepicker" options="{'step': '30', 'disableTextInput': false}"/>
...
See the available options at `jquery-timepicker <https://github.com//jonthornton//jquery-timepicker#timepicker-plugin-for-jquery>`_.
.. |picker| image:: ./images/picker.png
.. |formview| image:: ./images/form_view.png
Known issues / Roadmap
======================
* No validation on options.
Credits
=======
* The module uses the `jquery-timepicker <https://cdnjs.com//libraries//jquery-timepicker>`_ plugin by Jon Thornton. This software is made available under the open source MIT License. © 2014 Jon Thornton and contributors
* Odoo Community Association (OCA)
Contributors
------------
* Michael Fried <Michael.Fried@vividlab.de>
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
===============================
Timepicker widget in form views
===============================
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.
|picker|
The widget has the following default timepicker options:
* the possible selection is based on 15 minute interval (step: 15)
* 24 hour mode in H:i format (timeFormat: 'H:i')
* scroll selection starts at current time (scrollDefault: 'now')
|formview|
Usage
=====
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 jquery-timepicker plugin options can be specified by an options attribute::
...
<field name="mytimefieldname" widget="timepicker" options="{'step': '30', 'disableTextInput': false}"/>
...
See the available options at `jquery-timepicker <https://github.com//jonthornton//jquery-timepicker#timepicker-plugin-for-jquery>`_.
.. |picker| image:: ./images/picker.png
.. |formview| image:: ./images/form_view.png
Known issues / Roadmap
======================
* No validation on options.
Credits
=======
* The module uses the `jquery-timepicker <https://cdnjs.com//libraries//jquery-timepicker>`_ plugin by Jon Thornton. This software is made available under the open source MIT License. © 2014 Jon Thornton and contributors
* Odoo Community Association (OCA)
Contributors
------------
* Michael Fried <Michael.Fried@vividlab.de>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo9_addon_web_widget_timepicker-9.0.1.0.0.99.dev4-py2-none-any.whl.
File metadata
- Download URL: odoo9_addon_web_widget_timepicker-9.0.1.0.0.99.dev4-py2-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92b8d57368487bf356daa06a08d9386f01ccdefd7b6c29c220320db2864d4d0d
|
|
| MD5 |
5310b4de9e6db97ce0b4e2faa020e01e
|
|
| BLAKE2b-256 |
4784d1670c6e1417e95c8d69b85567eac1128fadaed0b8a025035ed0863ecbe0
|