mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP web_date_warning README style
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
**Web Date Warning**
|
#Web Date Warning
|
||||||
|
|
||||||
Provides warnings for date field entries that fall outside of a user-specified range, with the goal of reducing data entry errors.
|
Provides warnings for date field entries that fall outside of a user-specified range, with the goal of reducing data entry errors.
|
||||||
- For any date or date/time picker, set the threshold that should trigger the warning
|
|
||||||
- Allows you to set a threshold for past, future or both
|
* For any date or date/time picker, set the threshold that should trigger the warning
|
||||||
- In addition to displaying warning text, will also display how many days in the past or future the selected date is
|
* Allows you to set a threshold for past, future or both
|
||||||
|
* In addition to displaying warning text, will also display how many days in the past or future the selected date is
|
||||||
|
|
||||||
On a record with the date or date/time picket you wish to add the warning to, edit the form view and create an inherited view. Target the field name and include the following details:
|
On a record with the date or date/time picket you wish to add the warning to, edit the form view and create an inherited view. Target the field name and include the following details:
|
||||||
|
|
||||||
|
|
||||||
@@ -16,6 +18,6 @@ On a record with the date or date/time picket you wish to add the warning to, ed
|
|||||||
And/or `options="{'warn_past': 30}"` to set a threshold for past dates where 30 is the number of days
|
And/or `options="{'warn_past': 30}"` to set a threshold for past dates where 30 is the number of days
|
||||||
|
|
||||||
|
|
||||||
Example:
|
**Example:**
|
||||||
|
|
||||||
`<field name="date_invoice" widget="date-warn" options="{'warn_future': 90, 'warn_past': 30}"/>`
|
`<field name="date_invoice" widget="date-warn" options="{'warn_future': 90, 'warn_past': 30}"/>`
|
||||||
@@ -7,12 +7,14 @@
|
|||||||
'category': 'Tools',
|
'category': 'Tools',
|
||||||
'complexity': 'expert',
|
'complexity': 'expert',
|
||||||
'description': """
|
'description': """
|
||||||
**Web Date Warning**
|
#Web Date Warning
|
||||||
|
|
||||||
Provides warnings for date field entries that fall outside of a user-specified range, with the goal of reducing data entry errors.
|
Provides warnings for date field entries that fall outside of a user-specified range, with the goal of reducing data entry errors.
|
||||||
- For any date or date/time picker, set the threshold that should trigger the warning
|
|
||||||
- Allows you to set a threshold for past, future or both
|
* For any date or date/time picker, set the threshold that should trigger the warning
|
||||||
- In addition to displaying warning text, will also display how many days in the past or future the selected date is
|
* Allows you to set a threshold for past, future or both
|
||||||
|
* In addition to displaying warning text, will also display how many days in the past or future the selected date is
|
||||||
|
|
||||||
On a record with the date or date/time picket you wish to add the warning to, edit the form view and create an inherited view. Target the field name and include the following details:
|
On a record with the date or date/time picket you wish to add the warning to, edit the form view and create an inherited view. Target the field name and include the following details:
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +27,7 @@ On a record with the date or date/time picket you wish to add the warning to, ed
|
|||||||
And/or `options="{'warn_past': 30}"` to set a threshold for past dates where 30 is the number of days
|
And/or `options="{'warn_past': 30}"` to set a threshold for past dates where 30 is the number of days
|
||||||
|
|
||||||
|
|
||||||
Example:
|
**Example:**
|
||||||
|
|
||||||
`<field name="date_invoice" widget="date-warn" options="{'warn_future': 90, 'warn_past': 30}"/>`
|
`<field name="date_invoice" widget="date-warn" options="{'warn_future': 90, 'warn_past': 30}"/>`
|
||||||
""",
|
""",
|
||||||
|
|||||||
Reference in New Issue
Block a user