From c78f390e374e0c346da448c72bf6712c7b19b0d3 Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Fri, 17 Apr 2020 12:54:21 +0200
Subject: [PATCH] [clean] clean code

---
 views/calendar.xml                 | 1 +
 wizard/calendar_event_transform.py | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/views/calendar.xml b/views/calendar.xml
index 823cbc3..d9123a0 100644
--- a/views/calendar.xml
+++ b/views/calendar.xml
@@ -193,6 +193,7 @@
                     <attribute name="ur_sidebar_filter">True</attribute>
                 </calendar>
                 <field name="partner_ids" position="before">
+                    <field name="project_id" invisible="1"/>
                     <field name="ur_id" invisible="1"/>
                     <field name="coop_id" options="{'no_open': True, 'no_create': True}"/>
                     <field name="type" options="{'no_open': True, 'no_create': True}"/>
diff --git a/wizard/calendar_event_transform.py b/wizard/calendar_event_transform.py
index 6eaaa8b..a28610c 100644
--- a/wizard/calendar_event_transform.py
+++ b/wizard/calendar_event_transform.py
@@ -2,14 +2,14 @@
 from odoo import models, api
 
 
-class AccountInvoiceConfirm(models.TransientModel):
+class CalendarEventTransform(models.TransientModel):
     """
     This wizard will transform the all the selected
     calendar entries to timesheet
     """
 
     _name = "calendar.event.transform"
-    _description = "Confirm the selected invoices"
+    _description = "Confirm the selected calendar entries"
 
     @api.multi
     def events_confirm(self):
-- 
GitLab