Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sbc_compassion/models/correspondence.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,8 @@ def check_postponed_christmas_letters(self):
("kit_identifier", "=", False),
("state", "=", "Exception"),
("on_hold", "=", True),
# Released with the project reactivation instead
("child_id.project_id.hold_s2b_letters", "!=", True),
]
)
correspondences.reactivate_letters(_("Christmas period started"))
Expand Down
9 changes: 8 additions & 1 deletion thankyou_letters/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ def generate_thank_you(self):

all_thanks_config_ids = (
self.env["partner.communication.config"]
.search([("send_mode_pref_field", "like", "thankyou_preference")])
.search(
[
("send_mode_pref_field", "like", "thankyou_preference"),
# Other configs (e.g. third party letters on res.partner)
# share the preference field but not the model.
("model_id.model", "=", self._name),
]
)
.ids
)

Expand Down
Loading