From b914ecec350b7d2f9c411e2037ab103e67ba195b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jul 2022 10:42:06 +0200 Subject: [PATCH] corrections --- models/event.py | 4 ++-- views/event.xml | 2 +- views/product.xml | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/models/event.py b/models/event.py index 1b740cb..0658854 100644 --- a/models/event.py +++ b/models/event.py @@ -230,7 +230,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 +302,7 @@ class KalachakraEvent(models.Model): name_param=self.name.replace(' ','-') name_param=name_param.replace('\'','-') - description='Click here to register' + description='Cliquer ici pour s\'inscrire' #str(self.date_begin.year())+'-'+str(self.date_begin.month())+'-'+self.date_begin.day() body={"summary": self.name, diff --git a/views/event.xml b/views/event.xml index f697675..c3e4877 100644 --- a/views/event.xml +++ b/views/event.xml @@ -46,7 +46,7 @@ - + diff --git a/views/product.xml b/views/product.xml index c537588..8d20068 100644 --- a/views/product.xml +++ b/views/product.xml @@ -20,4 +20,24 @@ + + + + Products + ir.actions.act_window + product.template + kanban,tree,form + + + {"search_default_filter_booking_product_options":1} + +

+ Create a new product +

+ You must define a product for everything you sell or purchase, + whether it's a storable product, a consumable or a service. +

+
+
+ \ No newline at end of file