diff --git a/models/cgscop_timesheet_sheet.py b/models/cgscop_timesheet_sheet.py index bec543cbdf9e3ee5dde0e615f12c02d00593519e..6844736bafa698448744e695d5e3d2defb4683ab 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 be17a39b134a41a9dca33bb07c1cff958d966cf6..694a56a78ebb5a746a2fc9c3987e35486888e59f 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>