Skip to content

Commit

Permalink
[IMP] tax shelter: clarify the sending process
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Mar 15, 2024
1 parent be68c5b commit f28363e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_be_cooperator/models/tax_shelter_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def send_certificates(self):
tax_shelter_mail_template = self.env.ref(
"l10n_be_cooperator.email_template_tax_shelter_certificate"
)
for certificate in self.filtered(lambda x: x.state == "validated"):
for certificate in self.filtered(lambda x: x.state in ("validated", "sent")):
attachments = certificate.generate_certificates_report()
if len(attachments) > 0:
send_mail_with_additional_attachments(
Expand Down
4 changes: 2 additions & 2 deletions l10n_be_cooperator/views/tax_shelter_declaration_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
/>
<button
name="validate_declaration"
string="Validate Declaration"
string="Validate and Send"
type="object"
states="computed"
groups="cooperator.cooperator_group_user"
Expand Down Expand Up @@ -70,7 +70,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
type="object"
name="send_certificates"
icon="fa-play"
string="Send Certificates"
string="Send Again"
attrs="{'invisible':[('state','=','not_eligible')]}"
/>
</tree>
Expand Down

0 comments on commit f28363e

Please sign in to comment.