[11.0][MIG] web_widget_timepicker

This commit is contained in:
Alexandre Díaz
2019-02-05 05:01:40 +01:00
committed by David Alonso
parent f679cb371b
commit 51c3d56b4a
15 changed files with 129 additions and 1560 deletions

View File

@@ -0,0 +1,3 @@
* Michael Fried <Michael.Fried@vividlab.de>
* Kaushal Prajapati <kbprajapati@live.com>
* Alexandre Díaz <dev@redneboa.es>

View 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)

View 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.

View 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/>`_.