Skip to content
Snippets Groups Projects
Commit 3289a0bb authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[cgscop #129] correction bug impression FdT

parent 037f4090
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment