Skip to content

Commit

Permalink
fixed physical print signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Prazn authored and ecino committed Sep 30, 2024
1 parent 5ad13cb commit 7e62007
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions partner_communication_switzerland/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,13 @@ def _compute_signature(self):
template.remove("#photo")
user.signature = template.html().format(**values)

@api.depends_context("lang")
def _compute_short_signature(self):
for user in self:
template = PyQuery(user.signature)
user.short_signature = template("#short").html()

@api.depends_context("lang")
def _compute_signature_letter(self):
"""Translate country in Signature (for Compassion Switzerland)"""
for user in self:
Expand Down

0 comments on commit 7e62007

Please sign in to comment.