diff --git a/web_search_datetime_completion/README.rst b/web_search_datetime_completion/README.rst index 0e149b1c..0129baa5 100644 --- a/web_search_datetime_completion/README.rst +++ b/web_search_datetime_completion/README.rst @@ -1,37 +1,53 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: 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. +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. +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:: +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:: -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. +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. - -For further information, please visit: +Start filling in your date in a search field and choose one of the additional +options offered. -* https://www.odoo.com/forum/help-1 +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/162/8.0 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 `_. +If you spotted it first, help us smashing it by providing a detailed and +welcomed feedback +`here `_. Credits ======= diff --git a/web_search_datetime_completion/__openerp__.py b/web_search_datetime_completion/__openerp__.py index 0782ac86..f27117b3 100644 --- a/web_search_datetime_completion/__openerp__.py +++ b/web_search_datetime_completion/__openerp__.py @@ -32,6 +32,9 @@ "data": [ 'views/templates.xml', ], + "images": [ + "static/src/datetime_completion.img", + ], "auto_install": False, "installable": True, "application": False, diff --git a/web_search_datetime_completion/static/src/img/datetime_completion.png b/web_search_datetime_completion/static/src/img/datetime_completion.png new file mode 100644 index 00000000..08b154e2 Binary files /dev/null and b/web_search_datetime_completion/static/src/img/datetime_completion.png differ