diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-04-29 07:21:37 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-05-05 08:48:34 +0000 |
| commit | 4f8860e5038711c0da5b26584c4b72663908ddbc (patch) | |
| tree | ffbe4f19554bf39b9211272fc768aeaba7e63216 /doc/reference | |
| parent | a3c0d6ee714277819f541c6fa24934db55dfef0c (diff) | |
[IMP] web: add RemainingDays field widget
This widget can be used on date and datetime fields. In readonly,
it displays the delta (in days) between the value of the field and
today. In edit, it behaves like a regular date(time) widget.
Part of task 2195254
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 7d5b6e6af35..92c6a292ff9 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -1686,7 +1686,7 @@ order. <field name="datetimefield" options='{"datepicker": {"daysOfWeekDisabled": [0, 6]}}'/> - daterange (FieldDateRange) - This widget allow user to select start and end date into single picker. + This widget allows the user to select start and end date into a single picker. - Supported field types: *date*, *datetime* @@ -1702,6 +1702,13 @@ order. <field name="start_date" widget="daterange" options='{"related_end_date": "end_date"}'/> +- remaining_days (RemainingDays) + This widget can be used on date and datetime fields. In readonly, it displays + the delta (in days) between the value of the field and today. It edit, it + behaves like a regular date(time) widget. + + - Supported field types: *date*, *datetime* + - monetary (FieldMonetary) This is the default field type for fields of type 'monetary'. It is used to display a currency. If there is a currency fields given in option, it will |
