[FIX] sms: correctly remove unwanted spaces in phone numbers
Formatting / parsing of numbers may add spaces.
Related to task 1922163
Linked to PR #33567
This commit is contained in:
@@ -83,7 +83,7 @@ class SendSMS(models.TransientModel):
|
||||
return result
|
||||
|
||||
def action_send_sms(self):
|
||||
numbers = self.recipients.split(',')
|
||||
numbers = [number.strip() for number in self.recipients.split(',') if number.strip()]
|
||||
|
||||
active_model = self.env.context.get('active_model')
|
||||
model = self.env[active_model]
|
||||
|
||||
Reference in New Issue
Block a user