diff --git a/models/event.py b/models/event.py
index 0658854..f65d020 100644
--- a/models/event.py
+++ b/models/event.py
@@ -117,7 +117,8 @@ class KalachakraEvent(models.Model):
evt=self.env['event.event'].search([('parent_event_id','=', int(self.id))])
if evt:
for e in evt:
- e.remove_event_from_google_agenda()
+ if e.calendar_id and e.calendar_event_id:
+ e.remove_event_from_google_agenda()
e.unlink()
@@ -230,7 +231,7 @@ class KalachakraEvent(models.Model):
if prd.price_per=='day':
price=option.list_price*self.duration
if prd.price_per=='night':
- price=option.list_price*(self.duration-1)
+ price=option.list_price*self.duration-1
vals['event_id']=self.id
vals['booking_option_id']=option.id
@@ -302,7 +303,7 @@ class KalachakraEvent(models.Model):
name_param=self.name.replace(' ','-')
name_param=name_param.replace('\'','-')
- description='Cliquer ici pour s\'inscrire'
+ description='Click here to register'
#str(self.date_begin.year())+'-'+str(self.date_begin.month())+'-'+self.date_begin.day()
body={"summary": self.name,