You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.0 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. =========================
  5. Datepicker Widget Options
  6. =========================
  7. This module allows passing options to the jquery datepicker for fields that use
  8. the datepicker widget. The option are passed as-is and are not validated.
  9. To see all supported options, see the `API documentation
  10. <http://api.jqueryui.com/datepicker/>`_.
  11. Usage
  12. =====
  13. You must pass all options through the "datepicker" field in the options::
  14. ...
  15. <field name="date" options='{"datepicker":{"yearRange": "c-100:c+0"}}'/>
  16. ...
  17. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  18. :alt: Try me on Runbot
  19. :target: https://runbot.odoo-community.org/runbot/162/9.0
  20. Known issues / Roadmap
  21. ======================
  22. * Absolutely no validation on options.
  23. Bug Tracker
  24. ===========
  25. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
  26. In case of trouble, please check there if your issue has already been reported.
  27. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  28. `here <https://github.com/OCA/web/issues/new?body=module:%20web_widget_datepicker_options%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  29. Credits
  30. =======
  31. Images
  32. ------
  33. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
  34. Contributors
  35. ------------
  36. * Vincent Vinet <vincent.vinet@savoirfairelinux.com>
  37. Maintainer
  38. ----------
  39. .. image:: http://odoo-community.org/logo.png
  40. :alt: Odoo Community Association
  41. :target: http://odoo-community.org
  42. This module is maintained by the OCA.
  43. 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.
  44. To contribute to this module, please visit http://odoo-community.org.