diff options
| author | Adrien Widart <awt@odoo.com> | 2021-04-12 08:11:24 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-04-12 08:11:24 +0000 |
| commit | 02886f65e9026e1f7617c8b23c3d87edd358b168 (patch) | |
| tree | 521de73106af181e52389ddcb28bb74ef7d336b5 /addons/note/data/note_data.xml | |
| parent | f05dd3596ac22c5a8fb8c3feff7bf978a7698c73 (diff) | |
[FIX] calendar: extend month_day SQL constraint
When creating a recurrent event, an SQL contraint requires the field
`day` to be correcly defined. However, if the recurrence rule is like
"every last Monday of the month", the field becomes useless and may be
undefined. As a result, the SQL constraint will prevent the creation of
such a recurrent event.
For example, the situation will happen when the user creates this
recurrent event on Microsoft Calendar and then tries to sync with Odoo.
The recurrent event data will contain:
```python
{
'rrule_type': 'monthly',
'day': 0,
'byday': '2',
'month_by': 'day',
'weekday': 'TU',
# ...
}
```
OPW-2439814
closes odoo/odoo#69106
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/note/data/note_data.xml')
0 files changed, 0 insertions, 0 deletions
