From 3289a0bbd6071ede4ba1a89744d4e616c04bb960 Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Thu, 5 Mar 2020 18:25:57 +0100
Subject: [PATCH] [cgscop #129] correction bug impression FdT

---
 models/cgscop_timesheet_sheet.py | 1 -
 views/cgscop_timesheet_sheet.xml | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/models/cgscop_timesheet_sheet.py b/models/cgscop_timesheet_sheet.py
index bec543c..6844736 100644
--- a/models/cgscop_timesheet_sheet.py
+++ b/models/cgscop_timesheet_sheet.py
@@ -125,7 +125,6 @@ class ScopHrTimesheetSheet(models.Model):
             'submit_date': False,
             'validation_date': False})
 
-    @api.multi
     def print_timesheet(self):
         return self.env.ref(
             'cgscop_timesheet.cgscop_timesheet_sheet_report').report_action(self)
diff --git a/views/cgscop_timesheet_sheet.xml b/views/cgscop_timesheet_sheet.xml
index be17a39..694a56a 100644
--- a/views/cgscop_timesheet_sheet.xml
+++ b/views/cgscop_timesheet_sheet.xml
@@ -30,7 +30,7 @@
                     <header>
                         <button name="action_submit_timesheet" states="draft" string="Soumettre" type="object" class="oe_highlight"/>
                         <button name="approve_timesheet_sheets" states="submit" string="Valider" type="object" groups="hr_timesheet.group_timesheet_manager" class="oe_highlight"/>
-                        <button name="print_timesheet" string="Imprimer" type="objet" />
+                        <button name="print_timesheet" string="Imprimer" type="object" />
                         <button name="reset_timesheet_sheets" string="Remettre en brouillon" type="object" attrs="{'invisible': [('state', '=', 'draft')]}" groups="hr_timesheet.group_timesheet_manager"/>
                         <field name="state" widget="statusbar" statusbar_visible="draft,submit,valid"/>
                     </header>
-- 
GitLab