odoo/odoo#172589

Created by fw-bot
Merged at ee64d4c4b728d39b7e0a5753b04b215151fab43b

Statuses:

label
odoo-dev:16.0-15.0-sms-fix-chars-count-flch--5tG-fw
head
2624b2a3a1a7ab6fb3566985a3d11e89c739fd37
merged
1 year ago by Marketing, Thibault Delavallee (tde)
odoo/odoo
15.0 #140102
16.0 #172589
17.0 #173285
saas-17.1 #174383
saas-17.2 #174418
saas-17.4 #174439
18.0 #181456
saas-18.1
saas-18.2
saas-18.3
master #174949

[FW][FIX] {mass_mailing_,}sms, tools: fix links and characters counts

Commit 1

[FIX] sms, tools: prevent adding link references in sms

This fix prevents the conversion of urls into reference footnotes
in sent sms (adding characters and imparing readability) when
coming from raw text (in opposition to html source).

Commit 2

[FIX] mass_mailing_sms: fix characters count with (opt-out) links

Also impacted: sms

When adding opt-out link or any link in the text, the characters
count was incorrect which made SMS campaigns more expensive than
expected when added characters meant more SMS to send for the
message.

Commit 3

[FIX] sms: fix disappearing sms counts

Mute in this FW-port since owl.

task-3502174

Forward-Port-Of: #140102