From 41283e44102fad454eac370c5df602e43c7c3197 Mon Sep 17 00:00:00 2001 From: Alexandre Philibert Date: Mon, 14 Sep 2026 11:39:13 +0200 Subject: [PATCH] [T3457] FIX: Compute send mode only when a partner has been selected --- partner_communication/models/communication_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner_communication/models/communication_job.py b/partner_communication/models/communication_job.py index 8b588ac5f..765e755a3 100644 --- a/partner_communication/models/communication_job.py +++ b/partner_communication/models/communication_job.py @@ -721,7 +721,7 @@ def quick_refresh(self): @api.onchange("config_id", "partner_id") def onchange_config_id(self): self.user_id = self.config_id.user_id or self.env.user - if self.config_id: + if self.config_id and self.partner_id: send_mode = self.config_id.get_inform_mode(self.partner_id) self.send_mode = send_mode[0] # set default fields