Skip to content
Extraits de code Groupes Projets
Valider 3289a0bb rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[cgscop #129] correction bug impression FdT

parent 037f4090
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -125,7 +125,6 @@ class ScopHrTimesheetSheet(models.Model): ...@@ -125,7 +125,6 @@ class ScopHrTimesheetSheet(models.Model):
'submit_date': False, 'submit_date': False,
'validation_date': False}) 'validation_date': False})
@api.multi
def print_timesheet(self): def print_timesheet(self):
return self.env.ref( return self.env.ref(
'cgscop_timesheet.cgscop_timesheet_sheet_report').report_action(self) 'cgscop_timesheet.cgscop_timesheet_sheet_report').report_action(self)
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<header> <header>
<button name="action_submit_timesheet" states="draft" string="Soumettre" type="object" class="oe_highlight"/> <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="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"/> <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"/> <field name="state" widget="statusbar" statusbar_visible="draft,submit,valid"/>
</header> </header>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter