Skip to content

Commit

Permalink
SUB accept communication should be sent in priority for new dossiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Jun 10, 2021
1 parent e5f8902 commit 1f51e9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions partner_communication_switzerland/models/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,10 @@ def _send_new_dossier(self, correspondent=True):
sub_accept = self.env.ref(module + "sponsorship_sub_accept")
child_picture = self.env.ref(module + "config_onboarding_photo_by_post")
partner = self.correspondent_id if correspondent else self.partner_id
if self.origin_id.type == "transfer":
configs = transfer
elif self.parent_id.sds_state == "sub":
if self.parent_id.sds_state == "sub":
configs = sub_accept
elif self.origin_id.type == "transfer":
configs = transfer
elif not partner.email or \
partner.global_communication_delivery_preference == "physical":
configs = print_wrpr if self.type == "SC" and partner != self.partner_id \
Expand Down

0 comments on commit 1f51e9f

Please sign in to comment.