Web Timepicker Widget

by ,
Odoo          
v 9.0 v 10.0 v 11.0 Third Party 673
Download for 9.0 series
You bought this module and need support ? Click here !
Technical name web_widget_timepicker
LicenseAGPL-3
Websitehttp://www.vividlab.de
Read description for v 11.0 v 10.0
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.

Known issues / Roadmap

  • No validation on options.

Credits

  • The module uses the 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

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.