odoo links deleted

This commit is contained in:
Воробьев Данил Сергеевич 2024-05-28 17:34:57 +03:00
parent 6a8fbbf7a4
commit 84eef96cc6
6 changed files with 18 additions and 18 deletions

View File

@ -2,7 +2,7 @@ Odoo Enterprise Social Network
------------------------------ ------------------------------
Connect with experts, follow what interests you, share documents and promote Connect with experts, follow what interests you, share documents and promote
best practices withTalisman<a href="https://www.odoo.com/app/discuss">Enterprise Social Network</a>. Get work done with best practices withTalisman<a href="#">Enterprise Social Network</a>. Get work done with
effective collaboration across departments, geographies, documents and business effective collaboration across departments, geographies, documents and business
applications. All of this while decreasing email overload. applications. All of this while decreasing email overload.

View File

@ -58,7 +58,7 @@ same *conversation* document.
For more specific needs, you may also assign custom-defined actions For more specific needs, you may also assign custom-defined actions
(technically: Server Actions) to be triggered for each incoming mail. (technically: Server Actions) to be triggered for each incoming mail.
""", """,
'website': 'https://www.odoo.com/app/discuss', 'website': '#',
'depends': ['base', 'base_setup', 'bus', 'web_tour'], 'depends': ['base', 'base_setup', 'bus', 'web_tour'],
'data': [ 'data': [
'data/mail_groups.xml', 'data/mail_groups.xml',

View File

@ -101,7 +101,7 @@
</p> </p>
</div> </div>
<div style="color: #555555; font-size:11px;"> <div style="color: #555555; font-size:11px;">
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" Powered by <a target="_blank" href="#"
t-att-style="'color: ' + (company.email_secondary_color or '#875A7B') + ';'">Odoo</a> t-att-style="'color: ' + (company.email_secondary_color or '#875A7B') + ';'">Odoo</a>
<span id="mail_unfollow"> <span id="mail_unfollow">
| <a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a> | <a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a>
@ -175,7 +175,7 @@
</td></tr> </td></tr>
<!-- POWERED BY --> <!-- POWERED BY -->
<tr><td align="center" style="min-width: 590px;"> <tr><td align="center" style="min-width: 590px;">
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" Powered by <a target="_blank" href="#"
t-att-style="'color: ' + (company.email_secondary_color or '#875A7B') + ';'">Odoo</a> t-att-style="'color: ' + (company.email_secondary_color or '#875A7B') + ';'">Odoo</a>
<span id="mail_unfollow"> <span id="mail_unfollow">
| <a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a> | <a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a>

View File

@ -17,18 +17,18 @@ QUnit.test("Search highlight", async (assert) => {
searchTerm: "odoo", searchTerm: "odoo",
}, },
{ {
input: '<a href="https://www.odoo.com">https://www.odoo.com</a>', input: '<a href="#">https://www.odoo.com</a>',
output: `<a href="https://www.odoo.com">https://www.<span class="${HIGHLIGHT_CLASS}">odoo</span>.com</a>`, output: `<a href="#">https://www.<span class="${HIGHLIGHT_CLASS}">odoo</span>.com</a>`,
searchTerm: "odoo", searchTerm: "odoo",
}, },
{ {
input: '<a href="https://www.odoo.com">Odoo</a>', input: '<a href="#">Odoo</a>',
output: `<a href="https://www.odoo.com"><span class="${HIGHLIGHT_CLASS}">Odoo</span></a>`, output: `<a href="#"><span class="${HIGHLIGHT_CLASS}">Odoo</span></a>`,
searchTerm: "odoo", searchTerm: "odoo",
}, },
{ {
input: '<a href="https://www.odoo.com">Odoo</a>Talismanis a free software', input: '<a href="#">Odoo</a>Talismanis a free software',
output: `<a href="https://www.odoo.com"><span class="${HIGHLIGHT_CLASS}">Odoo</span></a> <span class="${HIGHLIGHT_CLASS}">Odoo</span> is a free software`, output: `<a href="#"><span class="${HIGHLIGHT_CLASS}">Odoo</span></a> <span class="${HIGHLIGHT_CLASS}">Odoo</span> is a free software`,
searchTerm: "odoo", searchTerm: "odoo",
}, },
{ {

View File

@ -144,7 +144,7 @@ QUnit.test("Posting message should transform links.", async () => {
openDiscuss(channelId); openDiscuss(channelId);
await insertText(".o-mail-Composer-input", "test https://www.odoo.com/"); await insertText(".o-mail-Composer-input", "test https://www.odoo.com/");
await click(".o-mail-Composer-send:enabled"); await click(".o-mail-Composer-send:enabled");
await contains("a[href='https://www.odoo.com/']"); await contains("a[href='#']");
}); });
QUnit.test("Posting message should transform relevant data to emoji.", async () => { QUnit.test("Posting message should transform relevant data to emoji.", async () => {

View File

@ -60,7 +60,7 @@ QUnit.test("simplest card layout", async () => {
og_description: "Description", og_description: "Description",
og_title: "Article title", og_title: "Article title",
og_type: "article", og_type: "article",
source_url: "https://www.odoo.com", source_url: "#",
}); });
const channelId = pyEnv["discuss.channel"].create({ name: "wololo" }); const channelId = pyEnv["discuss.channel"].create({ name: "wololo" });
pyEnv["mail.message"].create({ pyEnv["mail.message"].create({
@ -84,7 +84,7 @@ QUnit.test("simplest card layout with image", async () => {
og_image: "https://c.tenor.com/B_zYdea4l-4AAAAC/yay-minions.gif", og_image: "https://c.tenor.com/B_zYdea4l-4AAAAC/yay-minions.gif",
og_title: "Article title", og_title: "Article title",
og_type: "article", og_type: "article",
source_url: "https://www.odoo.com", source_url: "#",
}); });
const channelId = pyEnv["discuss.channel"].create({ name: "wololo" }); const channelId = pyEnv["discuss.channel"].create({ name: "wololo" });
pyEnv["mail.message"].create({ pyEnv["mail.message"].create({
@ -109,7 +109,7 @@ QUnit.test("Link preview video layout", async () => {
og_image: "https://c.tenor.com/B_zYdea4l-4AAAAC/yay-minions.gif", og_image: "https://c.tenor.com/B_zYdea4l-4AAAAC/yay-minions.gif",
og_title: "video title", og_title: "video title",
og_type: "video.other", og_type: "video.other",
source_url: "https://www.odoo.com", source_url: "#",
}); });
const channelId = pyEnv["discuss.channel"].create({ name: "wololo" }); const channelId = pyEnv["discuss.channel"].create({ name: "wololo" });
pyEnv["mail.message"].create({ pyEnv["mail.message"].create({
@ -179,7 +179,7 @@ QUnit.test("Remove link preview card", async () => {
og_description: "Description", og_description: "Description",
og_title: "Article title", og_title: "Article title",
og_type: "article", og_type: "article",
source_url: "https://www.odoo.com", source_url: "#",
}); });
const channelId = pyEnv["discuss.channel"].create({ name: "wololo" }); const channelId = pyEnv["discuss.channel"].create({ name: "wololo" });
pyEnv["mail.message"].create({ pyEnv["mail.message"].create({
@ -204,7 +204,7 @@ QUnit.test("Remove link preview video", async () => {
og_image: "https://c.tenor.com/B_zYdea4l-4AAAAC/yay-minions.gif", og_image: "https://c.tenor.com/B_zYdea4l-4AAAAC/yay-minions.gif",
og_title: "video title", og_title: "video title",
og_type: "video.other", og_type: "video.other",
source_url: "https://www.odoo.com", source_url: "#",
}); });
const channelId = pyEnv["discuss.channel"].create({ name: "wololo" }); const channelId = pyEnv["discuss.channel"].create({ name: "wololo" });
pyEnv["mail.message"].create({ pyEnv["mail.message"].create({
@ -300,7 +300,7 @@ QUnit.test(
og_description: "Description", og_description: "Description",
og_title: "Article title", og_title: "Article title",
og_type: "article", og_type: "article",
source_url: "https://www.odoo.com", source_url: "#",
}); });
const channelId = pyEnv["discuss.channel"].create({ name: "wololo" }); const channelId = pyEnv["discuss.channel"].create({ name: "wololo" });
pyEnv["mail.message"].create({ pyEnv["mail.message"].create({
@ -356,7 +356,7 @@ QUnit.test("Delete all link previews at once", async () => {
og_description: "Description", og_description: "Description",
og_title: "Article title 1", og_title: "Article title 1",
og_type: "article", og_type: "article",
source_url: "https://www.odoo.com", source_url: "#",
}, },
{ {
image_mimetype: "image/jpg", image_mimetype: "image/jpg",