Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

License: AGPL-3

More completion options for datetime fields

This module was written to extend the offers shown to the user when starting to fill in a date. In standard odoo, the only offer is the date at 00:00:00 hours, while it can be convenient for the user to have other options, too. When searching for the end of a period, 23:59:59 would come to mind, and there also might be domain specific times that make sense.

Configuration

If you do nothing, only the time 23:59:59 is added to the completion dropdown.

In your code, you can add an options dictionary with a key completion_options which contains a list if dictionaries detailing the offsets that should be added to the parsed date, like:

<field name="my_datetime_field" options="{'completion_options': [{'hours': 12, 'minutes': 30, 'seconds': 0}]}" />

which would offer to search for the date at half past twelve. Note that when you set completion_options, you have to list all options you want to see, as the standard options will be replaced with your list.

Usage

Start filling in your date in a search field and choose one of the additional options offered.

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Metadata

Release files for odoo8-addon-web-search-datetime-completion 8.0.1.0.0.99.dev9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo8-addon-web-search-datetime-completion 8.0.1.0.0.99.dev9
File Interpreter ABI Platform
odoo8_addon_web_search_datetime_completion-8.0.1.0.0.99.dev9-py2-none-any.whl Python 2 none any Details

Release files / odoo8_addon_web_search_datetime_completion-8.0.1.0.0.99.dev9-py2-none-any.whl

Download URL odoo8_addon_web_search_datetime_completion-8.0.1.0.0.99.dev9-py2-none-any.whl
Size 35.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
44bfa8950f0a748743c0dd36517b40deb3f492d7fe6da2a2570b52f554607229
BLAKE2b-256 checksum
How to use checksums
71031a481f0006d8c4378a378f886559bb3f2bb75b01c1c6b86b0eb7cac03848
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page