diff options
| author | Jairo Llopis <yajo.sk8@gmail.com> | 2018-06-04 11:35:02 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-06-13 14:53:11 +0200 |
| commit | 71334b13bd31c7f5a0c1704584b28274785f95e3 (patch) | |
| tree | 8ff26f26dd5180d1a6c4504701a881cdd8f37b24 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 4d3debe2c328248a6c1643b278bd8170b2f016c0 (diff) | |
[IMP] web: Expose datepicker configuration to view declarations
The lower-level widget itself supports passing options to the underlying
datepicker library. However this is not exposed to higher-level view
declaration. With this patch, one can declare a field in a view such as:
```xml
<field name="datefield" options='{"daysOfWeekDisabled": [0, 6]}'/>
```
That option would land in the widget and disable those weekdays.
Documentation has been updated accordingly.
Closes #25044.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
