summaryrefslogtreecommitdiff
path: root/addons/google_calendar/utils/google_event.py
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-03-25 14:21:50 +0100
committerLucas Lefèvre <lul@odoo.com>2020-04-09 10:59:34 +0200
commit1a9be3a8699df6422b4e1fe2d91cbbec48fae9de (patch)
treee703f821c33fd33473e65f7c61640f4e2acf52e0 /addons/google_calendar/utils/google_event.py
parentf2b69186499f7288af6d129986ad3d9d92b010c6 (diff)
[REF] calendar: Lint + Clean code
Diffstat (limited to 'addons/google_calendar/utils/google_event.py')
-rw-r--r--addons/google_calendar/utils/google_event.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_calendar/utils/google_event.py b/addons/google_calendar/utils/google_event.py
index a1274049224..fc962a1d073 100644
--- a/addons/google_calendar/utils/google_event.py
+++ b/addons/google_calendar/utils/google_event.py
@@ -169,6 +169,6 @@ class GoogleEvent(abc.Set):
def _get_model(self, env):
if all([e.is_recurrence() for e in self]):
return env['calendar.recurrence']
- elif all([not e.is_recurrence() for e in self]):
+ if all([not e.is_recurrence() for e in self]):
return env['calendar.event']
- raise TypeError("Mixing Google events and Google recurrences") \ No newline at end of file
+ raise TypeError("Mixing Google events and Google recurrences")