Files
odoo_source/addons
Arnaud Joset 61eaaae4a6 [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/odoo#139486

X-original-commit: bd1c46a79ea3d41a374fac47dd16af802d18045d
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
2023-10-24 15:23:14 +00:00
..
2023-09-27 11:33:01 +00:00
2023-10-20 09:35:21 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-09-11 19:13:59 +00:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-08-17 18:42:46 +02:00
2023-10-10 17:26:34 +00:00
2023-08-17 18:42:46 +02:00
2023-10-16 09:21:17 +00:00
2023-10-20 09:35:21 +00:00
2023-09-27 11:33:01 +00:00
2023-10-20 09:35:21 +00:00
2023-10-16 09:21:17 +00:00
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-10-20 09:35:21 +00:00