Commit f81866f
committed
[FIX] sms_marketing: ensure SMS links use the correct domain
Before this commit, the generated SMS link did not include the
SMS code because it was created using the domain of the second
website instead of the intended one. This happened because the
comparison was made against the `web.base.url` parameter instead
of the current website domain.
With this fix, the system correctly uses the current website domain
for both link generation and comparison, ensuring the correct domain
is applied.
Steps to reproduce:
- Go to **SMS Marketing**.
- Create a new `mailing.mailing` with **Concat Recipients**.
- Set up **two websites** with different domains.
- Configure `web.base.url` using the same domain as the **first website**.
- Log in to the **second website**.
- Send the `mailing.mailing`.
Expected behavior:
- The SMS link should include the correct domain and the SMS code.
odoo#2016411 parent d4d64d6 commit f81866f
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments