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

[update] print bordereau function

parent a344b261
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,7 @@ class ScopContributionReport(models.Model):
def print_contribution(self):
self.ensure_one()
if self.has_bordereau():
bordereau = (
self.env["scop.bordereau"]
.sudo()
......@@ -90,6 +91,8 @@ class ScopContributionReport(models.Model):
raise UserError(
_("Impossible de télécharger le bordereau associé à cette cotisation.")
)
else:
raise UserError(_("Pas de bordereau rattaché à cette cotisation."))
# ------------------------------------------------------
# Business method
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment