Skip to main content

Web Timepicker Widget

Project description

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

Project details


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

File details

Details for the file odoo9_addon_web_widget_timepicker-9.0.1.0.0.99.dev5-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo9_addon_web_widget_timepicker-9.0.1.0.0.99.dev5-py2-none-any.whl
Algorithm Hash digest
SHA256 c7244c4705784aad1b484cbc7b98bd7768461fde1a55eea64671f0521860fede
MD5 ee4953476d4d58268c1920e43221cc67
BLAKE2b-256 bd9554e4a246c03591f8bfc92e9495ca0099dc2d9618098add0616e5b9f528a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page