Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] calendar: prevent userError when base_event is not defined
Before this commit, the follwing traceback was sometimes raised. Error message ERROR: TestCalendar.test_event_creation_mail Traceback (most recent call last): File "/data/build/odoo/addons/calendar/tests/test_calendar.py", line 339, in test_event_creation_mail m.write({ File "/data/build/odoo/addons/calendar/models/calendar_event.py", line 574, in write self._rewrite_recurrence(values, time_values, recurrence_values) File "/data/build/odoo/addons/calendar/models/calendar_event.py", line 1084, in _rewrite_recurrence update_dict = self._get_time_update_dict(base_event, time_values) File "/data/build/odoo/addons/calendar/models/calendar_event.py", line 993, in _get_time_update_dict raise UserError(_("You can't update a recurrence without base event.")) odoo.exceptions.UserError: You can't update a recurrence without base event. closes odoo#139486 X-original-commit: bd1c46a Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
- Loading branch information